Skip to content

Commit 2d99aae

Browse files
LuckywustoneZQKC
authored andcommitted
[Bugfix]ZK健康巡检日志不清晰导致问题难定位 #904
[Bugfix]ZK健康巡检日志不清晰导致问题难定位 #904
1 parent a8847dc commit 2d99aae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/health/checker/zookeeper/HealthCheckZookeeperService.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private HealthCheckResult checkOutstandingRequests(Tuple<ClusterParam, BaseClust
122122
);
123123
if (metricsResult.failed() || !metricsResult.hasData()) {
124124
log.error(
125-
"method=checkOutstandingRequests||clusterPhyId={}||param={}||config={}||result={}||errMsg=get metrics failed",clusterPhyId ,param, valueConfig, metricsResult
125+
"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
126126
);
127127
return null;
128128
}
@@ -136,7 +136,7 @@ private HealthCheckResult checkOutstandingRequests(Tuple<ClusterParam, BaseClust
136136

137137
Float value = metricsResult.getData().getMetric(ZookeeperMetricVersionItems.ZOOKEEPER_METRIC_OUTSTANDING_REQUESTS);
138138
if(null == value){
139-
log.error("method=checkOutstandingRequests||clusterPhyId={}|| errMsg=get OutstandingRequests metric failed, may be collect failed or zk mntr command not in whitelist.", clusterPhyId);
139+
log.error("method=checkOutstandingRequests||clusterPhyId={}|| errMsg=get OutstandingRequests metric failed, may be collect failed or zk srvr command not in whitelist.", clusterPhyId);
140140
return null;
141141
}
142142

@@ -169,7 +169,7 @@ private HealthCheckResult checkWatchCount(Tuple<ClusterParam, BaseClusterHealthC
169169

170170
if (metricsResult.failed() || !metricsResult.hasData()) {
171171
log.error(
172-
"method=checkWatchCount||param={}||config={}||result={}||errMsg=get metrics failed",
172+
"method=checkWatchCount||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk mntr command not in whitelist.",
173173
param, valueConfig, metricsResult
174174
);
175175
return null;
@@ -205,7 +205,7 @@ private HealthCheckResult checkAliveConnections(Tuple<ClusterParam, BaseClusterH
205205

206206
if (metricsResult.failed() || !metricsResult.hasData()) {
207207
log.error(
208-
"method=checkAliveConnections||param={}||config={}||result={}||errMsg=get metrics failed",
208+
"method=checkAliveConnections||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.",
209209
param, valueConfig, metricsResult
210210
);
211211
return null;
@@ -241,7 +241,7 @@ private HealthCheckResult checkApproximateDataSize(Tuple<ClusterParam, BaseClust
241241

242242
if (metricsResult.failed() || !metricsResult.hasData()) {
243243
log.error(
244-
"method=checkApproximateDataSize||param={}||config={}||result={}||errMsg=get metrics failed",
244+
"method=checkApproximateDataSize||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.",
245245
param, valueConfig, metricsResult
246246
);
247247
return null;
@@ -277,7 +277,7 @@ private HealthCheckResult checkSentRate(Tuple<ClusterParam, BaseClusterHealthCon
277277

278278
if (metricsResult.failed() || !metricsResult.hasData()) {
279279
log.error(
280-
"method=checkSentRate||param={}||config={}||result={}||errMsg=get metrics failed",
280+
"method=checkSentRate||param={}||config={}||result={}||errMsg=get metrics failed, may be collect failed or zk srvr command not in whitelist.",
281281
param, valueConfig, metricsResult
282282
);
283283
return null;

0 commit comments

Comments
 (0)