You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ne...@apache.org on 2022/07/21 01:00:17 UTC
[iotdb] branch master updated: Place the addMetrics for configManager after setUpInternalServices (#6705)
This is an automated email from the ASF dual-hosted git repository.
neuyilan 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 abbf3bfe9f Place the addMetrics for configManager after setUpInternalServices (#6705)
abbf3bfe9f is described below
commit abbf3bfe9f58fa51b2e5a23724b65394214a35d7
Author: 23931017wu <71...@users.noreply.github.com>
AuthorDate: Thu Jul 21 09:00:12 2022 +0800
Place the addMetrics for configManager after setUpInternalServices (#6705)
---
.../main/java/org/apache/iotdb/confignode/service/ConfigNode.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java b/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
index 3aa8035c17..b818bade24 100644
--- a/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
+++ b/confignode/src/main/java/org/apache/iotdb/confignode/service/ConfigNode.java
@@ -81,7 +81,8 @@ public class ConfigNode implements ConfigNodeMBean {
initConfigManager();
// Set up internal services
setUpInternalServices();
-
+ // Add some Metrics for configManager
+ configManager.addMetrics();
/* Restart */
if (SystemPropertiesUtils.isRestarted()) {
setUpRPCService();
@@ -143,8 +144,6 @@ public class ConfigNode implements ConfigNodeMBean {
}
System.exit(-1);
}
- configManager.addMetrics();
-
LOGGER.info("Successfully initialize ConfigManager.");
}