You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/07/13 03:07:20 UTC

[iotdb] branch revert-IOTDB-3306-13 created (now a930432e14)

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

haonan pushed a change to branch revert-IOTDB-3306-13
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at a930432e14 [To rel/0.13] rpc service should start after StorageEngine

This branch includes the following new commits:

     new a930432e14 [To rel/0.13] rpc service should start after StorageEngine

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [To rel/0.13] rpc service should start after StorageEngine

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch revert-IOTDB-3306-13
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a930432e148392ef4b2ab35cb58c70d7a0579e13
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Jul 13 11:07:00 2022 +0800

    [To rel/0.13] rpc service should start after StorageEngine
---
 server/src/main/java/org/apache/iotdb/db/service/IoTDB.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java b/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
index e4219e2903..4090c376fb 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
@@ -138,10 +138,6 @@ public class IoTDB implements IoTDBMBean {
     logger.info("recover the schema...");
     initMManager();
     initServiceProvider();
-    // in cluster mode, RPC service is not enabled.
-    if (IoTDBDescriptor.getInstance().getConfig().isEnableRpcService()) {
-      registerManager.register(RPCService.getInstance());
-    }
     registerManager.register(JMXService.getInstance());
     registerManager.register(FlushManager.getInstance());
     registerManager.register(MultiFileLogNodeManager.getInstance());
@@ -152,6 +148,10 @@ public class IoTDB implements IoTDBMBean {
     registerManager.register(TemporaryQueryDataFileService.getInstance());
     registerManager.register(UDFClassLoaderManager.getInstance());
     registerManager.register(UDFRegistrationService.getInstance());
+    // in cluster mode, RPC service is not enabled.
+    if (IoTDBDescriptor.getInstance().getConfig().isEnableRpcService()) {
+      registerManager.register(RPCService.getInstance());
+    }
 
     initProtocols();
     // in cluster mode, InfluxDBMManager has been initialized, so there is no need to init again to