Skip to content

Commit

Permalink
forbid invalid all region cache
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <[email protected]>
  • Loading branch information
iosmanthus committed Sep 5, 2022
1 parent c615180 commit bdeb94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/tikv/common/region/RegionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public TiStore getStoreById(long id, BackOffer backOffer) {
TiStore store = getStoreByIdWithBackOff(id, backOffer);
if (store == null) {
logger.warn(String.format("failed to fetch store %d, the store may be missing", id));
cache.clearAll();
cache.invalidateStore(id);
throw new InvalidStoreException(id);
}
return store;
Expand Down

0 comments on commit bdeb94a

Please sign in to comment.