diff --git a/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java b/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java index a21bc8101..f9477d566 100644 --- a/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java +++ b/server/common/common-service/src/main/java/io/holoinsight/server/common/service/SuperCacheService.java @@ -20,8 +20,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.function.Function; -import java.util.stream.Collectors; /** * @@ -53,13 +51,16 @@ public void load() throws Exception { ProdLog.info("[SuperCache] load start"); SuperCache sc = new SuperCache(); sc.metaDataDictValueMap = metaDictValueService.getMetaDictValue(); + ProdLog.info("[SuperCache][metaDataDictValueMap] size: " + sc.metaDataDictValueMap.size()); sc.expressionMetricList = metricInfoService.querySpmList(); + ProdLog.info("[SuperCache][expressionMetricList] size: " + sc.expressionMetricList.size()); sc.workspaceTenantMap = new HashMap<>(); QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq("deleted", false); + queryWrapper.eq("deleted", 0); List instances = monitorInstanceService.list(queryWrapper); instances.forEach( instance -> sc.workspaceTenantMap.put(instance.getWorkspace(), instance.getTenant())); + ProdLog.info("[SuperCache][workspaceTenantMap] size: " + sc.workspaceTenantMap.size()); queryMetricInfoByPage(sc); this.sc = sc; ProdLog.info("[SuperCache] load end"); @@ -106,5 +107,7 @@ private void queryMetricInfoByPage(SuperCache sc) { } while (current < 1000); sc.metricInfoMap = map; sc.workspaceMetricInfoMap = workspaceMap; + ProdLog.info("[SuperCache][metricInfoMap] size: " + sc.metricInfoMap.size()); + ProdLog.info("[SuperCache][workspaceMetricInfoMap] size: " + sc.workspaceMetricInfoMap.size()); } }