You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/11/16 08:41:34 UTC

[iotdb] branch ConfigBug created (now 3c591a7)

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

jackietien pushed a change to branch ConfigBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 3c591a7  Fix iotdb-engine.properties doesn't take effect bug

This branch includes the following new commits:

     new 3c591a7  Fix iotdb-engine.properties doesn't take effect bug

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: Fix iotdb-engine.properties doesn't take effect bug

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

jackietien pushed a commit to branch ConfigBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 3c591a73c5550fc5db01bacc7afe20842a7fef46
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Tue Nov 16 16:40:44 2021 +0800

    Fix iotdb-engine.properties doesn't take effect bug
---
 .../src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 1d0ae09..17deb09 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -1281,10 +1281,13 @@ public class IoTDBDescriptor {
                   + queryMemoryAllocateProportion);
         }
       }
-
-      conf.setMaxQueryDeduplicatedPathNum(
-          Integer.parseInt(properties.getProperty("max_deduplicated_path_num")));
     }
+
+    conf.setMaxQueryDeduplicatedPathNum(
+        Integer.parseInt(
+            properties.getProperty(
+                "max_deduplicated_path_num",
+                Integer.toString(conf.getMaxQueryDeduplicatedPathNum()))));
   }
 
   @SuppressWarnings("squid:S3518") // "proportionSum" can't be zero