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

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


The following commit(s) were added to refs/heads/fix_cn_write_wrong_config by 
this push:
     new a8c4213759d fix test
a8c4213759d is described below

commit a8c4213759d6ef460355fdba13731ff8cdbbfb95
Author: Tian Jiang <[email protected]>
AuthorDate: Thu Dec 26 13:09:29 2024 +0800

    fix test
    
    (cherry picked from commit e15012c1dbfeae180b1ff17999d730e6912deabd)
---
 .../org/apache/iotdb/db/it/IoTDBSetConfigurationIT.java    | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSetConfigurationIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSetConfigurationIT.java
index 8158a6db0b2..7f5f234859b 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSetConfigurationIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSetConfigurationIT.java
@@ -50,6 +50,7 @@ import static org.junit.Assert.assertTrue;
 @RunWith(IoTDBTestRunner.class)
 @Category({LocalStandaloneIT.class})
 public class IoTDBSetConfigurationIT {
+
   @BeforeClass
   public static void setUp() throws Exception {
     EnvFactory.getEnv().initClusterEnvironment();
@@ -70,6 +71,8 @@ public class IoTDBSetConfigurationIT {
     } catch (Exception e) {
       Assert.fail(e.getMessage());
     }
+    // set configuration "enable_seq_space_compaction"="false"
+    // set configuration "enable_unseq_space_compaction"="false" on 0
     Assert.assertTrue(
         EnvFactory.getEnv().getConfigNodeWrapperList().stream()
             .allMatch(
@@ -78,14 +81,17 @@ public class IoTDBSetConfigurationIT {
                         nodeWrapper,
                         "enable_seq_space_compaction=false",
                         "enable_unseq_space_compaction=false")));
+    // set configuration "enable_seq_space_compaction"="false"
     Assert.assertTrue(
         EnvFactory.getEnv().getDataNodeWrapperList().stream()
             .allMatch(
                 nodeWrapper ->
-                    checkConfigFileContains(
-                        nodeWrapper,
-                        "enable_seq_space_compaction=false",
-                        "enable_cross_space_compaction=false")));
+                    checkConfigFileContains(nodeWrapper, 
"enable_seq_space_compaction=false")));
+    // set configuration "enable_cross_space_compaction"="false" on 1
+    assertTrue(
+        checkConfigFileContains(
+            EnvFactory.getEnv().getDataNodeWrapperList().get(0),
+            "enable_cross_space_compaction=false"));
   }
 
   @Test

Reply via email to