-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fix ResolveLock not called in Scan API #2089
Conversation
fix resolve lock not called in Scan API Signed-off-by: birdstorm <[email protected]>
/run-all-tests tidb=v5.0.3 tikv=v5.0.3 pd=v5.0.3 |
Signed-off-by: birdstorm <[email protected]>
/run-all-tests tidb=v5.0.3 tikv=v5.0.3 pd=v5.0.3 |
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.
this PR should port to client-java ?
@@ -115,7 +118,7 @@ public static ByteString bytesGet(ByteString key, Snapshot snapshot) { | |||
List<Pair<ByteString, ByteString>> fields = new ArrayList<>(); | |||
while (iterator.hasNext()) { | |||
Kvrpcpb.KvPair kv = iterator.next(); | |||
if (kv == null || kv.getKey() == null) { | |||
if (kv == null || kv.getKey().isEmpty()) { |
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.
if (kv == null || kv.getKey().isEmpty()) { | |
if (kv == null || kv.getKey() == null || kv.getKey().isEmpty()) { |
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.
@marsishandsome key is non-null
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
/merge |
cherry pick to release-2.3 in PR #2090 |
cherry pick to release-2.4 in PR #2091 |
fix resolve lock not called in Scan API Signed-off-by: birdstorm <[email protected]>
* fix v2.4 scan bug fix resolve lock not called in Scan API Signed-off-by: birdstorm <[email protected]> * remove backoff Signed-off-by: birdstorm <[email protected]> Co-authored-by: birdstorm <[email protected]>
Signed-off-by: birdstorm <[email protected]>
ResolveLock was not called in Scan API, it would lead to
table or view not found