From 2d99aae77934b046eb1d8aabe0ae2561fc32f791 Mon Sep 17 00:00:00 2001 From: Luckywustone <115451970+Luckywustone@users.noreply.github.com> Date: Wed, 22 Feb 2023 11:50:01 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]ZK=E5=81=A5=E5=BA=B7=E5=B7=A1=E6=A3=80?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=8D=E6=B8=85=E6=99=B0=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E9=9A=BE=E5=AE=9A=E4=BD=8D=20#904?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Bugfix]ZK健康巡检日志不清晰导致问题难定位 #904 --- .../zookeeper/HealthCheckZookeeperService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/health/checker/zookeeper/HealthCheckZookeeperService.java b/km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/health/checker/zookeeper/HealthCheckZookeeperService.java index b0d70ce6..f18f3172 100644 --- a/km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/health/checker/zookeeper/HealthCheckZookeeperService.java +++ b/km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/health/checker/zookeeper/HealthCheckZookeeperService.java @@ -122,7 +122,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { ); if (metricsResult.failed() || !metricsResult.hasData()) { log.error( - "method=checkOutstandingRequests||clusterPhyId={}||param={}||config={}||result={}||errMsg=get metrics failed",clusterPhyId ,param, valueConfig, metricsResult + "method=checkOutstandingRequests||clusterPhyId={}||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.",clusterPhyId ,param, valueConfig, metricsResult ); return null; } @@ -136,7 +136,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { Float value = metricsResult.getData().getMetric(ZookeeperMetricVersionItems.ZOOKEEPER_METRIC_OUTSTANDING_REQUESTS); if(null == value){ - log.error("method=checkOutstandingRequests||clusterPhyId={}|| errMsg=get OutstandingRequests metric failed, may be collect failed or zk mntr command not in whitelist.", clusterPhyId); + log.error("method=checkOutstandingRequests||clusterPhyId={}|| errMsg=get OutstandingRequests metric failed, may be collect failed or zk srvr command not in whitelist.", clusterPhyId); return null; } @@ -169,7 +169,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { if (metricsResult.failed() || !metricsResult.hasData()) { log.error( - "method=checkWatchCount||param={}||config={}||result={}||errMsg=get metrics failed", + "method=checkWatchCount||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk mntr command not in whitelist.", param, valueConfig, metricsResult ); return null; @@ -205,7 +205,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { if (metricsResult.failed() || !metricsResult.hasData()) { log.error( - "method=checkAliveConnections||param={}||config={}||result={}||errMsg=get metrics failed", + "method=checkAliveConnections||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.", param, valueConfig, metricsResult ); return null; @@ -241,7 +241,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { if (metricsResult.failed() || !metricsResult.hasData()) { log.error( - "method=checkApproximateDataSize||param={}||config={}||result={}||errMsg=get metrics failed", + "method=checkApproximateDataSize||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.", param, valueConfig, metricsResult ); return null; @@ -277,7 +277,7 @@ public class HealthCheckZookeeperService extends AbstractHealthCheckService { if (metricsResult.failed() || !metricsResult.hasData()) { log.error( - "method=checkSentRate||param={}||config={}||result={}||errMsg=get metrics failed", + "method=checkSentRate||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.", param, valueConfig, metricsResult ); return null;