Skip to content

Commit

Permalink
[ISSUE alibaba#5080] Fix health checker pre-start logic. (alibaba#5081)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixystone authored Mar 12, 2021
1 parent 481d25a commit 4acb695
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void process(HealthCheckTaskV2 task, Service service, ClusterMetadata met
}
try {
// TODO handle marked(white list) logic like v1.x.
if (instance.tryStartCheck()) {
if (!instance.tryStartCheck()) {
SRV_LOG.warn("http check started before last one finished, service: {} : {} : {}:{}",
service.getGroupedServiceName(), instance.getCluster(), instance.getIp(), instance.getPort());
healthCheckCommon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void process(HealthCheckTaskV2 task, Service service, ClusterMetadata met
SRV_LOG.debug("mysql check, ip:" + instance);
try {
// TODO handle marked(white list) logic like v1.x.
if (instance.tryStartCheck()) {
if (!instance.tryStartCheck()) {
SRV_LOG.warn("mysql check started before last one finished, service: {} : {} : {}:{}",
service.getGroupedServiceName(), instance.getCluster(), instance.getIp(), instance.getPort());
healthCheckCommon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void process(HealthCheckTaskV2 task, Service service, ClusterMetadata met
return;
}
// TODO handle marked(white list) logic like v1.x.
if (instance.tryStartCheck()) {
if (!instance.tryStartCheck()) {
SRV_LOG.warn("tcp check started before last one finished, service: {} : {} : {}:{}",
service.getGroupedServiceName(), instance.getCluster(), instance.getIp(), instance.getPort());
healthCheckCommon
Expand Down

0 comments on commit 4acb695

Please sign in to comment.