This is an automated email from the ASF dual-hosted git repository.
jiangtian 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 b7f9f8d49af Fix that a deletion test may fail due to inconsistency
caused by leader redistribution (#16744)
b7f9f8d49af is described below
commit b7f9f8d49afcf32ed7739e600e74561b72c65d1b
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)
---
.../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();
}