From 21e05522fbefdb4dc7e78f7ded422fd33659d46f Mon Sep 17 00:00:00 2001 From: jsy Date: Tue, 20 Feb 2024 20:55:03 +0800 Subject: [PATCH] fix: fix monitorinstance in supercacheservice (#802) --- .../server/common/service/SuperCacheService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 3653aac22..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 @@ -51,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"); @@ -104,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()); } }