-
Notifications
You must be signed in to change notification settings - Fork 118
[close #600] ScanIterator missing fetch the region keys because the wrong limit setting
#603
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
Conversation
b226d00 to
222b4ff
Compare
ScanIterator missing fetch the region keys because the wrong limit setting
iosmanthus
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
Codecov Report
@@ Coverage Diff @@
## master #603 +/- ##
============================================
- Coverage 34.08% 34.01% -0.07%
+ Complexity 1369 1361 -8
============================================
Files 270 270
Lines 17174 17174
Branches 1956 1956
============================================
- Hits 5853 5842 -11
- Misses 10708 10717 +9
- Partials 613 615 +2
Continue to review full report at Codecov.
|
|
@iosmanthus Thank you for your reply. Merging is blocked. what else should I do now, please? |
You may execute the |
|
thanks for you reply. I had format the project.
|
iosmanthus
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
|
hi @iosmanthus, what else should I do now? Thank you for your patience |
What problem does this PR solve?
Issue Number: close #600
Problem Description: TxnKV Scan lose data when table has more than one regions
see #600
What is changed and how does it work?
Code changes
Has methods of interface change
before change
after change
Check List for Tests
step 1: change code
step 2: build the tikv-client-java 3.2.0-SNAPSHOT
mvn clean install -DskipTestsstep 3: prepare a TiDB Table which has two regions
for example:
total count of tha table is 200000:
table regions:
step 4: useing TxnKV to scan the table
tikv-client-java version: 3.2.0-SNAPSHOT which is built in step2
code
result:
total size: 200000fix the data lose
Side effects
Related changes