You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/11/20 02:25:05 UTC

[GitHub] [incubator-iotdb] liuruiyiyang commented on a change in pull request #560: Optimize Dynamic Config with ActiveTimeSeriesCounter

liuruiyiyang commented on a change in pull request #560: Optimize Dynamic Config with ActiveTimeSeriesCounter
URL: https://github.com/apache/incubator-iotdb/pull/560#discussion_r348264768
 
 

 ##########
 File path: server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
 ##########
 @@ -107,6 +100,13 @@ private void setUp() throws StartupException {
     registerManager.register(MetricsService.getInstance());
     JMXService.registerMBean(getInstance(), mbeanName);
 
+    // When registering statMonitor, we should start recovering some statistics
+    // with latest values stored
+    // Warn: registMonitor() method should be called after systemDataRecovery()
+    if (IoTDBDescriptor.getInstance().getConfig().isEnableStatMonitor()) {
+      StatMonitor.getInstance().recovery();
+    }
+
 
 Review comment:
   To fix the launch failure when enable StatMonitor.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services