-
Notifications
You must be signed in to change notification settings - Fork 6.1k
importinto: optimize conflicts resolution | tidb-test=release-8.1.2 #61059
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
importinto: optimize conflicts resolution | tidb-test=release-8.1.2 #61059
Conversation
|
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/release-8.1-gsort-test #61059 +/- ##
===================================================================
Coverage ? 71.0574%
===================================================================
Files ? 1473
Lines ? 425816
Branches ? 0
===================================================================
Hits ? 302574
Misses ? 102648
Partials ? 20594
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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. |
joechenrh
left a comment
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
| c.logger.Info("too many conflict rows from index, skip checking", | ||
| zap.String("handleSize", units.BytesSize(float64(c.savedHandleSize.Load())))) | ||
| c.skipSaveHandle = true | ||
| c.savedHandles = make(map[string]bool) |
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.
Not clear the saved handle here and let it merged into e.result? Since we can ensure that the total map size won't exceed the limit.
|
@joechenrh: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn 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. |
Benjamin2037
left a comment
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.
LGTM
|
/hold will fix the comment later |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, GMHDBJD, joechenrh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/unhold |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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. |
8010c96
into
pingcap:feature/release-8.1-gsort-test
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What changed and how does it work?
Check List
Tests
schema
ENV
for a case with 500000 conflicted rows, all rows are conflicted due to UK. after this PR, conflict resolution speed is about 18518 rows/seconds, ~70 times faster.
for a case with 15000000 conflicted rows, all rows are conflicted due to UK. after this PR, conflict resolution speed is about 20270 rows/seconds.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.