From 7002c8881c049a0b0bd84bf9cdb13ffee0c89e58 Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Mon, 27 Mar 2023 10:02:11 -0700 Subject: [PATCH] Update comment Signed-off-by: Suraj Singh --- .../indices/replication/SegmentReplicationAllocationIT.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java b/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java index f60ffc1b1b4c1..04f0a2c4bfb13 100644 --- a/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationAllocationIT.java @@ -173,9 +173,8 @@ public void testAllocationWithDisruption() throws Exception { internalCluster().startClusterManagerOnlyNode(); final int maxReplicaCount = 2; final int maxShardCount = 2; - // Create maxReplicaCount+2 number of nodes. maxReplicaCount for replica shards & 1 node for primary shard - // allocation. One extra node to ensure post failover, primary shards do not remain stuck on one node due to - // SameShardAllocationDecider preventing re-balancing + // Create higher number of nodes than number of shards to reduce chances of SameShardAllocationDecider kicking-in + // and preventing primary relocations final int nodeCount = randomIntBetween(5, 10); final int numberOfIndices = randomIntBetween(1, 10);