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

rong 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 349a9b4  [IOTDB-2220] Fix unit tests too slow issue caused by the 
MQTTService (#4649)
349a9b4 is described below

commit 349a9b462ce7867a737bdc7e995b12eba0c912eb
Author: BaiJian <[email protected]>
AuthorDate: Wed Dec 29 09:59:42 2021 +0800

    [IOTDB-2220] Fix unit tests too slow issue caused by the MQTTService (#4649)
---
 server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java 
b/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index fc45633..6bc8746 100644
--- a/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/server/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -139,6 +139,9 @@ public class EnvironmentUtils {
     }
 
     IoTDBDescriptor.getInstance().getConfig().setReadOnly(false);
+    // We must disable MQTT service as it will cost a lot of time to be 
shutdown, which may slow our
+    // unit tests.
+    IoTDBDescriptor.getInstance().getConfig().setEnableMQTTService(false);
 
     // clean cache
     if (config.isMetaDataCacheEnable()) {

Reply via email to