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

tanxinyu 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 dae1fadc408 [IOTDB-6288] Alter default disk_space_warning_threshold in 
ClusterIT environment (#11854)
dae1fadc408 is described below

commit dae1fadc408802cdb650b9776ef146935a290ade
Author: Yongzao <[email protected]>
AuthorDate: Fri Jan 5 16:04:17 2024 +0800

    [IOTDB-6288] Alter default disk_space_warning_threshold in ClusterIT 
environment (#11854)
---
 .../java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java | 5 ++++-
 .../apache/iotdb/confignode/it/cluster/IoTDBClusterNodeGetterIT.java | 2 +-
 .../org/apache/iotdb/confignode/it/utils/ConfigNodeTestUtils.java    | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java
 
b/integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java
index dccff690a2a..e1b16ee6e7d 100644
--- 
a/integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java
+++ 
b/integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppCommonConfig.java
@@ -36,9 +36,12 @@ public class MppCommonConfig extends MppBaseConfig 
implements CommonConfig {
 
   public MppCommonConfig() {
     super();
+    // Set the default disk_space_warning_threshold in ClusterIT environment 
to 1%
+    setProperty("disk_space_warning_threshold", String.valueOf(0.01));
   }
 
-  public MppCommonConfig(String filePath) throws IOException {
+  // This constructor is no longer in use
+  protected MppCommonConfig(String filePath) throws IOException {
     super(filePath);
   }
 
diff --git 
a/integration-test/src/test/java/org/apache/iotdb/confignode/it/cluster/IoTDBClusterNodeGetterIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/confignode/it/cluster/IoTDBClusterNodeGetterIT.java
index a65d192a9a1..fc8b08329a2 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/confignode/it/cluster/IoTDBClusterNodeGetterIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/confignode/it/cluster/IoTDBClusterNodeGetterIT.java
@@ -172,7 +172,7 @@ public class IoTDBClusterNodeGetterIT {
       Assert.assertEquals(
           expectedParameters.getDiskSpaceWarningThreshold(),
           clusterParameters.getDiskSpaceWarningThreshold(),
-          0.01);
+          0.001);
       Assert.assertEquals(
           expectedParameters.getReadConsistencyLevel(),
           clusterParameters.getReadConsistencyLevel());
diff --git 
a/integration-test/src/test/java/org/apache/iotdb/confignode/it/utils/ConfigNodeTestUtils.java
 
b/integration-test/src/test/java/org/apache/iotdb/confignode/it/utils/ConfigNodeTestUtils.java
index 4c3261e2346..dfe6a136f8c 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/confignode/it/utils/ConfigNodeTestUtils.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/confignode/it/utils/ConfigNodeTestUtils.java
@@ -326,7 +326,7 @@ public class ConfigNodeTestUtils {
     clusterParameters.setSchemaReplicationFactor(1);
     clusterParameters.setDataRegionPerDataNode(5.0);
     clusterParameters.setSchemaRegionPerDataNode(1.0);
-    clusterParameters.setDiskSpaceWarningThreshold(0.05);
+    clusterParameters.setDiskSpaceWarningThreshold(0.01);
     clusterParameters.setReadConsistencyLevel("strong");
     clusterParameters.setTimestampPrecision("ms");
     clusterParameters.setSchemaEngineMode("Memory");

Reply via email to