-
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
ddl: merge continuous key ranges in FLASHBACK CLUSTER job args #54914
Conversation
Signed-off-by: lance6716 <lance6716@gmail.com>
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-sigs/prow repository. |
Signed-off-by: lance6716 <lance6716@gmail.com>
/check-issue-triage-complete |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #54914 +/- ##
================================================
+ Coverage 72.8022% 74.2361% +1.4338%
================================================
Files 1561 1561
Lines 438809 438898 +89
================================================
+ Hits 319463 325821 +6358
+ Misses 99641 93224 -6417
- Partials 19705 19853 +148
Flags with carried forward coverage won't be shown. Click here to find out more.
|
pkg/executor/recover_test.go
Outdated
tk.MustExec("set @@global.tidb_ddl_error_count_limit = 2") | ||
tk.MustExec("set @@global.tidb_enable_fast_create_table=ON") | ||
|
||
for i := 0; i < 400; i++ { |
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.
you can create them in parallel to be faster, as in https://github.com/pingcap/tidb/pull/55025/files#diff-3c769a746cec11d5c583a7ad47b92b8a90a1b8d8e3cb86a7f368de7deb5f71b9R660-R661
pkg/executor/recover_test.go
Outdated
tk.MustExec(fmt.Sprintf("create database db_%d", i)) | ||
} | ||
|
||
ts, _ := tk.Session().GetStore().GetOracle().GetTimestamp(context.Background(), &oracle.Option{}) |
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, _ := tk.Session().GetStore().GetOracle().GetTimestamp(context.Background(), &oracle.Option{}) | |
ts, _ := store.CurrentVersion(oracle.GlobalTxnScope) |
pkg/executor/recover_test.go
Outdated
} | ||
|
||
ts, _ := tk.Session().GetStore().GetOracle().GetTimestamp(context.Background(), &oracle.Option{}) | ||
flashbackTs := oracle.GetTimeFromTS(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.
this ts is after all database created, so flashback cluster
does nothing?
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.
In the old behaviour this test will fail (stuck) because KV entry exceed limitation. I can add a comment in next commit
// | ||
// Precondition: schemaKeyRanges is sorted by start key. schemaKeyRanges are | ||
// non-overlapping. | ||
func appendContinuousKeyRanges(result []kv.KeyRange, schemaKeyRanges []keyRangeMayExclude) []kv.KeyRange { |
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 appendContinuousKeyRanges(result []kv.KeyRange, schemaKeyRanges []keyRangeMayExclude) []kv.KeyRange { | |
func mergeContinuousKeyRanges(result []kv.KeyRange, schemaKeyRanges []keyRangeMayExclude) []kv.KeyRange { |
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.
I want to mention the input slice will be append
ed, so I prefer keep the old name
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.
maybe avoid modifying input param, ok to leave it anyway
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, wjhuang2016 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 |
[LGTM Timeline notifier]Timeline:
|
/hold |
@lance6716: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Signed-off-by: lance6716 <lance6716@gmail.com>
/unhold |
/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. |
What problem does this PR solve?
Issue Number: close #54915
Problem Summary:
What changed and how does it work?
as title
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.