Skip to content

Commit

Permalink
invalid cache for range exceeds bound
Browse files Browse the repository at this point in the history
Signed-off-by: shiyuhang <[email protected]>
  • Loading branch information
shiyuhang0 committed Mar 19, 2024
1 parent 8a6527a commit e9af8ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/tikv/common/region/RegionStoreClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ private List<RangeSplitter.RegionTask> handleCopResponse(
if (!otherError.isEmpty()) {
// Invalid cache and split ranges for range exceeds bound error
if (otherError.contains("range exceeds bound")) {
backOffer.doBackOff(

Check warning on line 744 in src/main/java/org/tikv/common/region/RegionStoreClient.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/tikv/common/region/RegionStoreClient.java#L744

Added line #L744 was not covered by tests
BackOffFunction.BackOffFuncType.BoRegionMiss, new GrpcException("range exceeds bound"));
this.regionManager.invalidateRegion(this.region);
logger.warn(
String.format("Invalid cache and re-splitting region task due to: %s.", otherError));
Expand Down

0 comments on commit e9af8ce

Please sign in to comment.