Open fxleyu opened 1 year ago
健康检查原因是 SQL 线程池挂了导致
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
FrontIndexBanner frontIndexBanner = cache.getIfPresent(CACHE_KEY_4_BANNER);
if (Objects.isNull(frontIndexBanner)) {
frontIndexBanner = resourceUserService.indexBanner(NavigationTypeEnum.HOME.getIndex(), new FrontUserContext());
if (Objects.nonNull(frontIndexBanner)) {
cache.put(CACHE_KEY_4_BANNER, frontIndexBanner);
}
}
WHAT THE FUCK!!!!!!!!!!!
这个缓存好像在高流量下引发「健康检查」失败。