use of com.pingcap.tikv.event.CacheInvalidateEvent in project tispark by pingcap.
the class KVErrorHandler method notifyRegionCacheInvalidate.
private void notifyRegionCacheInvalidate(TiRegion region) {
if (cacheInvalidateCallBack != null) {
cacheInvalidateCallBack.apply(new CacheInvalidateEvent(region, true, false, CacheInvalidateEvent.CacheType.REGION_STORE));
logger.info("Accumulating cache invalidation info to driver:regionId=" + region.getId() + ",type=" + CacheInvalidateEvent.CacheType.REGION_STORE.name());
} else {
logger.warn("Failed to send notification back to driver since CacheInvalidateCallBack is null in executor node.");
}
}
use of com.pingcap.tikv.event.CacheInvalidateEvent in project tispark by pingcap.
the class KVErrorHandler method notifyRegionStoreCacheInvalidate.
private void notifyRegionStoreCacheInvalidate(TiRegion region, CacheInvalidateEvent.CacheType type) {
if (cacheInvalidateCallBack != null) {
cacheInvalidateCallBack.apply(new CacheInvalidateEvent(region, true, true, type));
logger.info("Accumulating cache invalidation info to driver:regionId=" + region.getId() + ",storeId=" + region.getLeader().getStoreId() + ",type=" + type.name());
} else {
logger.warn("Failed to send notification back to driver since CacheInvalidateCallBack is null in executor node.");
}
}
Aggregations