From 911624d7cf468906e34478e32a894741a5a5ae97 Mon Sep 17 00:00:00 2001 From: davionchen <125986510@qq.com> Date: Tue, 14 Mar 2023 16:33:11 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9B=E5=8C=BA=E5=88=86=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=8E=A2=E6=B5=8B=E7=BB=93=E6=9E=9C=E4=B8=8E?= =?UTF-8?q?=E6=9C=80=E7=BB=88=E8=BF=94=E5=9B=9E=E7=BB=93=E6=9E=9C=E3=80=82?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A8=E9=85=8D=E7=BD=AE=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E6=8E=A2=E6=B5=8B=E6=8F=92=E4=BB=B6=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E4=B8=80=E4=B8=AA=E7=BB=84=E4=BB=B6=E6=8E=A2=E6=B5=8B?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=EF=BC=8C=E4=B8=80=E4=B8=AA=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E7=BB=93=E6=9E=9C=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=9C=80=E7=BB=88=E6=8E=A2=E6=B5=8B=E7=BB=93=E6=9E=9C=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=20(#319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circuitbreak/client/task/InstancesDetectTask.java | 5 +++-- pom.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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