You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iosmanthus
changed the title
[fix 600]TxnKV Scan lose data when table has more than one regions
[close #600] ScanIterator missing fetch the region keys because the wrong limit setting
May 12, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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