Skip to content

Commit

Permalink
修改: Fix 12301
Browse files Browse the repository at this point in the history
  • Loading branch information
chen10038 committed Jul 8, 2024
1 parent d5afc38 commit f3a6417
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.alibaba.nacos.naming.healthcheck.v2.processor;

import com.alibaba.nacos.api.common.Constants;
import com.alibaba.nacos.api.naming.pojo.healthcheck.HealthCheckType;
import com.alibaba.nacos.naming.core.v2.metadata.ClusterMetadata;
import com.alibaba.nacos.naming.core.v2.pojo.HealthCheckInstancePublishInfo;
Expand Down Expand Up @@ -102,7 +103,7 @@ public void process(HealthCheckTaskV2 task, Service service, ClusterMetadata met
// TODO handle marked(white list) logic like v1.x.
if (!instance.tryStartCheck()) {
SRV_LOG.warn("[HEALTH-CHECK-V2] tcp check started before last one finished, service: {} : {} : {}:{}",
service.getGroupedServiceName(), instance.getCluster(), instance.getIp(), instance.getPort());
service.getNamespace() + Constants.SERVICE_INFO_SPLITER + service.getGroupedServiceName(), instance.getCluster(), instance.getIp(), instance.getPort());
healthCheckCommon
.reEvaluateCheckRT(task.getCheckRtNormalized() * 2, task, switchDomain.getTcpHealthParams());
return;
Expand Down Expand Up @@ -287,7 +288,7 @@ public void finishCheck(boolean success, boolean now, long rt, String msg) {

@Override
public String toString() {
return service.getGroupedServiceName() + ":" + instance.getCluster() + ":" + instance.getIp() + ":"
return service.getNamespace() + Constants.SERVICE_INFO_SPLITER + service.getGroupedServiceName() + ":" + instance.getCluster() + ":" + instance.getIp() + ":"
+ instance.getPort();
}

Expand Down

0 comments on commit f3a6417

Please sign in to comment.