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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git


The following commit(s) were added to refs/heads/master by this push:
     new 51ac9f58e Fix Test
51ac9f58e is described below

commit 51ac9f58edd93fccbb450f4d4ea78038ef75ba16
Author: Junkai Xue <[email protected]>
AuthorDate: Mon Apr 27 20:59:28 2026 -0700

    Fix Test
    
      The fix ensures:
      - testMinimalActiveReplicaMaintain() now uses _participants.get(2) 
instead of get(3)
      - testMinimalActiveReplicaMaintainWithOneOffline() now uses 
_participants.get(2) instead of get(3)
---
 .../TestDelayedAutoRebalanceWithDisabledInstance.java                 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/helix-core/src/test/java/org/apache/helix/integration/rebalancer/DelayedAutoRebalancer/TestDelayedAutoRebalanceWithDisabledInstance.java
 
b/helix-core/src/test/java/org/apache/helix/integration/rebalancer/DelayedAutoRebalancer/TestDelayedAutoRebalanceWithDisabledInstance.java
index 7fa1426d6..62b8cbfd9 100644
--- 
a/helix-core/src/test/java/org/apache/helix/integration/rebalancer/DelayedAutoRebalancer/TestDelayedAutoRebalanceWithDisabledInstance.java
+++ 
b/helix-core/src/test/java/org/apache/helix/integration/rebalancer/DelayedAutoRebalancer/TestDelayedAutoRebalanceWithDisabledInstance.java
@@ -117,7 +117,7 @@ public class TestDelayedAutoRebalanceWithDisabledInstance 
extends TestDelayedAut
     }
 
     // disable another node, the minimal active replica for each partition 
should be maintained.
-    enableInstance(_participants.get(3).getInstanceName(), false);
+    enableInstance(_participants.get(2).getInstanceName(), false);
     Thread.sleep(DEFAULT_REBALANCE_PROCESSING_WAIT_TIME);
     Assert.assertTrue(_clusterVerifier.verifyByPolling());
 
@@ -154,7 +154,7 @@ public class TestDelayedAutoRebalanceWithDisabledInstance 
extends TestDelayedAut
     }
 
     // bring down another node, the minimal active replica for each partition 
should be maintained.
-    _participants.get(3).syncStop();
+    _participants.get(2).syncStop();
     Thread.sleep(DEFAULT_REBALANCE_PROCESSING_WAIT_TIME);
     Assert.assertTrue(_clusterVerifier.verifyByPolling());
 

Reply via email to