You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2023/09/28 04:17:23 UTC

[iotdb] branch master updated: [IOTDB-6168] ConfigNode register retry logic does not worked (#11188)

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

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new ed62ba67cd4 [IOTDB-6168] ConfigNode register retry logic does not worked (#11188)
ed62ba67cd4 is described below

commit ed62ba67cd4802370591be423084799f805ae060
Author: QiangShaowei <ba...@163.com>
AuthorDate: Thu Sep 28 12:17:17 2023 +0800

    [IOTDB-6168] ConfigNode register retry logic does not worked (#11188)
---
 .../src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
index 014e9884b92..2e9c4c056de 100644
--- a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
+++ b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
@@ -350,7 +350,9 @@ public class ConfigNode implements ConfigNodeMBean {
         return;
       } else if (status.getCode() == TSStatusCode.REDIRECTION_RECOMMEND.getStatusCode()) {
         targetConfigNode = status.getRedirectNode();
-        LOGGER.info("ConfigNode need redirect to  {}.", targetConfigNode);
+        LOGGER.info("ConfigNode need redirect to  {}, retry {} ...", targetConfigNode, retry);
+      } else if (status.getCode() == TSStatusCode.INTERNAL_REQUEST_RETRY_ERROR.getStatusCode()) {
+        LOGGER.warn("The result of register self ConfigNode is {}, retry {} ...", status, retry);
       } else {
         throw new StartupException(status.getMessage());
       }