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

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

commit a1fe4104c9d855a4b7968de824dd1686335d43d0
Author: Jiang Tian <[email protected]>
AuthorDate: Wed Nov 12 21:39:50 2025 +0800

    Fix that a deletion test may fail due to inconsistency caused by leader 
redistribution (#16744)
    
    (cherry picked from commit b7f9f8d49afcf32ed7739e600e74561b72c65d1b)
---
 .../java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java
index 997a80a76f1..d08e26be4f0 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java
@@ -117,6 +117,8 @@ public class IoTDBDeletionTableIT {
         .setMemtableSizeThreshold(10000);
     // Adjust MemTable threshold size to make it flush automatically
     
EnvFactory.getEnv().getConfig().getDataNodeConfig().setCompactionScheduleInterval(5000);
+    // avoid inconsistency caused by leader migration
+    
EnvFactory.getEnv().getConfig().getConfigNodeConfig().setLeaderDistributionPolicy("HASH");
     EnvFactory.getEnv().initClusterEnvironment();
   }
 

Reply via email to