This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new 320758eaa [#4510] fixed kie config-center can not record fail state 
when connect exception problem (#4511)
320758eaa is described below

commit 320758eaabe6c76c551800f0cf5095b85fb367e5
Author: Alex <[email protected]>
AuthorDate: Fri Sep 6 10:12:48 2024 +0800

    [#4510] fixed kie config-center can not record fail state when connect 
exception problem (#4511)
---
 .../main/java/org/apache/servicecomb/config/kie/client/KieClient.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/KieClient.java
 
b/clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/KieClient.java
index d28185fb7..dc5c641f6 100644
--- 
a/clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/KieClient.java
+++ 
b/clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/KieClient.java
@@ -101,6 +101,7 @@ public class KieClient implements KieConfigOperation {
           "read response failed. status:" + httpResponse.getStatusCode() + "; 
message:" +
               httpResponse.getMessage() + "; content:" + 
httpResponse.getContent());
     } catch (Exception e) {
+      addressManager.recordFailState(address);
       LOGGER.error("query configuration from {} failed, message={}", url, 
e.getMessage());
       throw new OperationException("read response failed. ", e);
     }

Reply via email to