Skip to content

Conversation

@ti-srebot
Copy link
Collaborator

@ti-srebot ti-srebot commented Mar 1, 2022

cherry-pick #541 to release-3.2
You can switch your code base to this Pull Request by using git-extras:

# In client-java repo:
git pr https://github.com/tikv/client-java/pull/546

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/client-java.git pr/546:release-3.2-97983823cc04

Signed-off-by: iosmanthus myosmanthustree@gmail.com

What problem does this PR solve?

Issue Number: close #540

Problem Description:

This pull request adds an empty key check for RawScanIterator.hasNext, otherwise, if there is an empty key in TiKV, the scan will always return an empty set.

Check List for Tests

This PR has been tested by at least one of the following methods:

  • Integration test

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator Author

/run-all-tests

Copy link
Member

@iosmanthus iosmanthus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iosmanthus
Copy link
Member

/merge

@ti-srebot
Copy link
Collaborator Author

/run-all-tests

@zz-jason zz-jason enabled auto-merge (squash) March 22, 2022 13:53
@ti-srebot
Copy link
Collaborator Author

/run-all-tests

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (release-3.2@d9a377f). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release-3.2     #546   +/-   ##
==============================================
  Coverage               ?   30.74%           
  Complexity             ?     1280           
==============================================
  Files                  ?      278           
  Lines                  ?    17344           
  Branches               ?     1975           
==============================================
  Hits                   ?     5333           
  Misses                 ?    11434           
  Partials               ?      577           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9a377f...4035b8c. Read the comment docs.

@zz-jason zz-jason merged commit 101c949 into tikv:release-3.2 Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants