-
Notifications
You must be signed in to change notification settings - Fork 108
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
scanning data error key_not_in_region #762
Labels
type/bug
Something isn't working
Comments
I encountered the same issue. My code looks like this. Please let me know if there is something wrong with it. TiConfiguration conf = TiConfiguration.createDefault("127.0.0.1:2379");
try (TiSession session = TiSession.create(conf);
RawKVClient kvClient = session.createRawClient()) {
var iterator = kvClient.scanPrefix0(ByteString.copyFromUtf8("t"), 100, true);
iterator.forEachRemaining(System.out::println);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
1. Describe the bug
Error scanning data from region.
2. Minimal reproduce step (Required)
The above exception occurred when I called the rawKVClient. scan() method
3. What did you see instead (Required)
Caused by: shade.io.grpc.StatusRuntimeException: UNKNOWN: message: "key xxx is not in region key range [xxx, xxx) for region 230"
key_not_in_region {
key: "xxx..."
region_id: 230
start_key: "xxx..."
end_key: "xxx..."
}
org.tikv.common.exception.TiClientInternalException: Error scanning data from region.
at org.tikv.common.operation.iterator.ScanIterator.cacheLoadFails(ScanIterator.java:98)
at org.tikv.common.operation.iterator.RawScanIterator.hasNext(RawScanIterator.java:69)
...
org.tikv.common.exception.TiClientInternalException: Error scanning data from region.
at org.tikv.common.operation.iterator.ScanIterator.cacheLoadFails(ScanIterator.java:98)
at org.tikv.common.operation.iterator.RawScanIterator.hasNext(RawScanIterator.java:69)
at java.util.Iterator.forEachRemaining(Iterator.java:115)
...
4. What did you expect to see? (Required)
How to Solve This Problem
5. What are your Java Client and TiKV versions? (Required)
The text was updated successfully, but these errors were encountered: