jt2594838 commented on code in PR #16540:
URL: https://github.com/apache/iotdb/pull/16540#discussion_r2434499583


##########
integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/manual/IoTDBPipeTsFileDecompositionWithModsIT.java:
##########
@@ -112,20 +131,32 @@ public void testTsFileDecompositionWithMods() throws 
Exception {
 
     TestUtils.executeNonQueryWithRetry(senderEnv, "FLUSH");
 
-    executeNonQueryWithRetry(
-        senderEnv,
-        String.format(
-            "CREATE PIPE test_pipe WITH SOURCE ('mods.enable'='true') WITH 
CONNECTOR('ip'='%s', 'port'='%s', 'format'='tablet')",
-            receiverEnv.getDataNodeWrapperList().get(0).getIp(),
-            receiverEnv.getDataNodeWrapperList().get(0).getPort()));
+    Thread.sleep(
+        30000); // wait for followers to catch up, avoiding leader election 
during pipe creation

Review Comment:
   May try this to avoid leader redistribution
   
`senderEnv.getConfig().getConfigNodeConfig().setLeaderDistributionPolicy("HASH");`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to