diff --git a/polaris-circuitbreaker/polaris-circuitbreaker-client/src/main/java/com/tencent/polaris/circuitbreak/client/task/InstancesDetectTask.java b/polaris-circuitbreaker/polaris-circuitbreaker-client/src/main/java/com/tencent/polaris/circuitbreak/client/task/InstancesDetectTask.java index c5480a58b..8849b0a94 100644 --- a/polaris-circuitbreaker/polaris-circuitbreaker-client/src/main/java/com/tencent/polaris/circuitbreak/client/task/InstancesDetectTask.java +++ b/polaris-circuitbreaker/polaris-circuitbreaker-client/src/main/java/com/tencent/polaris/circuitbreak/client/task/InstancesDetectTask.java @@ -138,10 +138,11 @@ private ServiceUpdateRequest buildInstanceUpdateResult(ServiceKey serviceKey, private DetectResult detectInstance(Instance instance) throws PolarisException { DetectResult result = null; for (HealthChecker detector : extensions.getHealthCheckers()) { - result = detector.detectInstance(instance); - if (result == null) { + DetectResult pluginResult = detector.detectInstance(instance); + if (pluginResult == null) { continue; } + result = pluginResult; if (result.getRetStatus() == RetStatus.RetSuccess) { result.setDetectType(detector.getName()); return result; diff --git a/pom.xml b/pom.xml index 91fc1818a..201cb3603 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ - 1.9.5 + 1.9.6 ${maven.build.timestamp} false