mychaow commented on a change in pull request #1474:
URL: https://github.com/apache/incubator-iotdb/pull/1474#discussion_r453414662



##########
File path: server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
##########
@@ -123,7 +120,22 @@ private void setUp() throws StartupException {
     if (IoTDBDescriptor.getInstance().getConfig().isEnableMQTTService()) {
       registerManager.register(MQTTService.getInstance());
     }
-    logger.info("IoTDB is set up.");
+
+    logger.info("IoTDB is set up, now may some sgs are not ready, don't worry, 
the superman Dr. Huang will teach the sg to fix themselves.");
+
+    while (!StorageEngine.getInstance().isAllSgReady()) {
+      try {
+        Thread.sleep(1000);
+      } catch (InterruptedException e) {
+        e.printStackTrace();
+      }
+    }

Review comment:
       Good idea!




----------------------------------------------------------------
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:
[email protected]


Reply via email to