-
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
external: fix decoding the last key in split keys #59613
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #59613 +/- ##
================================================
+ Coverage 73.0087% 73.5585% +0.5498%
================================================
Files 1694 1729 +35
Lines 468366 482591 +14225
================================================
+ Hits 341948 354987 +13039
- Misses 105384 105809 +425
- Partials 21034 21795 +761
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e40853b
to
4ff6929
Compare
5e7842a
to
ba52d94
Compare
ba52d94
to
51537dd
Compare
8d0dce1
to
aee14c5
Compare
973532f
to
6002802
Compare
f466ab0
to
8ff59d8
Compare
bfea255
to
af13a6a
Compare
@@ -98,7 +99,6 @@ type Engine struct { | |||
endKey []byte | |||
jobKeys [][]byte | |||
splitKeys [][]byte | |||
regionSplitSize int64 |
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.
just remove useless field
@@ -110,8 +110,7 @@ type Engine struct { | |||
// this flag also affects the strategy of loading data, either: | |||
// less load routine + check and read hotspot file concurrently (add-index uses this one) | |||
// more load routine + read each file using 1 reader (import-into uses this one) | |||
checkHotspot bool | |||
mergerIterConcurrency int |
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.
DITTO
/retest |
0b15319
to
721cea9
Compare
280d73d
to
baa5e7e
Compare
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, 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 |
/retest |
@CbcWestwolf: 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. |
/retest |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
What problem does this PR solve?
Issue Number: close #59725
Problem Summary:
When the kv size or kv count of unique key is large, we will call
GetRegionSplitKeys
, which did not properly consider the case ofkey.Next()
. Then it fails due to the decoding.What changed and how does it work?
Introduce the method
tryDecodeEndKey
to decode the last keyCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.