-
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
store/copr: batch build coprocessor tasks #54153
Conversation
Hi @you06. 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. |
b121be4
to
e6d5426
Compare
/ok-to-test |
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #54153 +/- ##
=================================================
- Coverage 72.8336% 55.9413% -16.8924%
=================================================
Files 1520 1666 +146
Lines 434902 618051 +183149
=================================================
+ Hits 316755 345746 +28991
- Misses 98549 248200 +149651
- Partials 19598 24105 +4507
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: you06 <[email protected]> fix bug Signed-off-by: you06 <[email protected]> remove with leader option Signed-off-by: you06 <[email protected]> update go.mod Signed-off-by: you06 <[email protected]> update client-go Signed-off-by: you06 <[email protected]> bazel Signed-off-by: you06 <[email protected]> comment public func Signed-off-by: you06 <[email protected]> update client-go Signed-off-by: you06 <[email protected]> update bazel Signed-off-by: you06 <[email protected]> deprecate ScanRegions Signed-off-by: you06 <[email protected]> bazel Signed-off-by: you06 <[email protected]> sort imports Signed-off-by: you06 <[email protected]> impl BatchScanRegions for MockPDClientForSplit Signed-off-by: you06 <[email protected]> fix injected error Signed-off-by: you06 <[email protected]> impl BatchScanRegions for FakePDClient Signed-off-by: you06 <[email protected]>
042b7b7
to
006cbc9
Compare
/retest |
2 similar comments
/retest |
/retest |
Signed-off-by: you06 <[email protected]>
Signed-off-by: you06 <[email protected]>
/retest |
1 similar comment
/retest |
@@ -1483,7 +1483,7 @@ func buildBatchCopTasksConsistentHashForPD(bo *backoff.Backoffer, | |||
splitKeyStart := time.Now() | |||
for i, ranges := range rangesForEachPhysicalTable { | |||
rangesLen += ranges.Len() | |||
locations, err := cache.SplitKeyRangesByLocationsWithoutBuckets(bo, ranges, UnspecifiedLimit) | |||
locations, err := cache.SplitKeyRangesByLocations(bo, ranges, UnspecifiedLimit, false, false) |
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.
@windtalker PTAL this file, I unify SplitKeyRangesByLocationsWithBuckets
and SplitKeyRangesByLocationsWithoutBuckets
. For batch_coprocessor
, region without leader peer will also be returned(though this case is impossible in our expection).
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
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.
BR part LGTM.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, tangenta, YuJuncen, zyguan 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 |
What problem does this PR solve?
Issue Number: close #53850
Problem Summary:
What changed and how does it work?
Build coprocessor tasks from the new interface
BatchLocateKeyRanges
.Check List
Tests
The test result:
SPLIT TABLE sbtest1 BETWEEN (0) AND (1000000) REGIONS 1000;
explain analyze select * from sbtest1 limit 1;
...build_task_duration: 81.5ms...
, statmenet execution takes 0.11 sec...build_task_duration: 2.7ms...
, statement execution takes 0.02 secSide effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.