Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 authored and ti-chi-bot committed Nov 25, 2022
1 parent 1f0b276 commit 63eaa13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ private List<RangeSplitter.RegionTask> handleCopResponse(
backOffer.doBackOff(
BackOffFunction.BackOffFuncType.BoRegionMiss, new GrpcException(regionError.toString()));
logger.warn("Re-splitting region task due to region error:" + regionError.getMessage());
// we need to invalidate cache
// Do we need to invalidateAllRegion? Do we need to invalidate store cache?
// we need to invalidate cache when region not find
if (regionError.hasRegionNotFound()) {
logger.info("invalidateRange when Re-splitting region task because of region not find.");
this.regionManager.invalidateRange(region.getStartKey(),region.getEndKey());
}
// Split ranges
Expand Down

0 comments on commit 63eaa13

Please sign in to comment.