Skip to content
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

KVClient scan error #756

Open
FelixZeng opened this issue Jun 7, 2023 · 0 comments
Open

KVClient scan error #756

FelixZeng opened this issue Jun 7, 2023 · 0 comments
Labels
type/bug Something isn't working

Comments

@FelixZeng
Copy link

Bug Report

1. KVClient scan error

It occurred exception when using the following method of org.tikv.txn.KVClient.
public List<Kvrpcpb.KvPair> scan(ByteString startKey, ByteString endKey, long version) throws GrpcException;

2. Minimal reproduce step (Required)

  1. Insert test data into TiKV using TwoPhaseCommitter successfully
    Test data contains several KV pairs, and all the keys start with "h[tikv-client-java]txn1`"

  2. Use KVClient.scan to get all the data of which the keys start with "h[tikv-client-java]txn1" KVClient.scan(ByteString.copyFromUtf8("h[tikv-client-java]txn1"),
    ByteString.copyFromUtf8("h[tikv-client-java]txn1a"), transactionStartTimestamp);

3. What did you see instead (Required)

Scan failed with exceptions like
org.tikv.common.exception.TiClientInternalException: Error scanning data from region.
org.tikv.common.exception.KeyException: tikv abort txn Error(InvalidKeyRangeMode { cmd: scan, storage_api_version: V2, range: (Some("78000000685B7469FF6B762D636C69656EFF742D6A6176615D74FF786E316000000000FB"), None) })

image image

4. What did you expect to see? (Required)

All the data of which the keys start with "h[tikv-client-java]txn1`"

5. What are your Java Client and TiKV versions? (Required)

  • Client Java: 3.3.4
  • TiKV: v6.1.1
@FelixZeng FelixZeng added the type/bug Something isn't working label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant