From 42cc6c972a9156ffc59df9e2fb944cc17df1308a Mon Sep 17 00:00:00 2001 From: Alex <97039406+chengyouling@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:13:01 +0800 Subject: [PATCH] [#4510] fixed kie config center can not record fail state when connect exception problem (#4512) --- .../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 d28185fb7cf..dc5c641f6dd 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 ConfigurationsResponse queryConfigurations(ConfigurationsRequest request, "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); }