-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: caller can use a fixed TS for fast reorg #52993
Conversation
Signed-off-by: lance6716 <[email protected]>
Hi @lance6716. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #52993 +/- ##
================================================
+ Coverage 72.4413% 73.8742% +1.4328%
================================================
Files 1492 1533 +41
Lines 429013 444320 +15307
================================================
+ Hits 310783 328238 +17455
+ Misses 98955 95419 -3536
- Partials 19275 20663 +1388
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
/retest |
@lance6716: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
ts := oracle.ComposeTS(physical, logical) | ||
ts := cfg.TS | ||
if ts == 0 { | ||
ts = oracle.ComposeTS(physical, logical) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can skip GetTS if ts != 0
@@ -89,6 +89,9 @@ type EngineConfig struct { | |||
// KeepSortDir indicates whether to keep the temporary sort directory | |||
// when opening the engine, instead of removing it. | |||
KeepSortDir bool | |||
// TS is the preset timestamp of data in the engine. When it's 0, the used TS | |||
// will be set lazily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// will be set lazily. | |
// will be set lazily. | |
// only used in global sort now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's also used in generateLocalEngineConfig
in local fast reorg of DDL
pkg/ddl/ingest/checkpoint.go
Outdated
@@ -298,6 +314,7 @@ type ReorgCheckpoint struct { | |||
PhysicalID int64 `json:"physical_id"` | |||
StartKey kv.Key `json:"start_key"` | |||
EndKey kv.Key `json:"end_key"` | |||
TS uint64 `json:"ts"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS uint64 `json:"ts"` | |
// TS of next engine ingest. | |
TS uint64 `json:"ts"` |
pkg/ddl/ingest/checkpoint.go
Outdated
return nil | ||
} | ||
|
||
func (s *CheckpointManager) refreshTS() (uint64, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func (s *CheckpointManager) refreshTS() (uint64, error) { | |
func (s *CheckpointManager) refreshTSAndUpdateCP() (uint64, error) { |
the refreshTS part is same as in resumeOrInitCheckpoint
Signed-off-by: lance6716 <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, tangenta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
Signed-off-by: lance6716 <[email protected]>
/unhold |
/cherry-pick release-8.1 |
@lance6716: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: ref #49233 close #46986
Problem Summary:
What changed and how does it work?
Check List
Tests
before
after
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.