Skip to content

Commit c06b0b5

Browse files
committed
Fix IndexShardTestCase.recoverReplica(IndexShard, IndexShard, boolean) (#37414)
This commit fixes the IndexShardTestCase.recoverReplica(IndexShard, IndexShard, boolean) method where the startReplica parameter was not correctly propagated and the value true always used instead.
1 parent f445390 commit c06b0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ protected void recoverReplica(IndexShard replica, IndexShard primary, boolean st
551551
recoverReplica(replica, primary,
552552
(r, sourceNode) -> new RecoveryTarget(r, sourceNode, recoveryListener, version -> {
553553
}),
554-
true, true);
554+
true, startReplica);
555555
}
556556

557557
/** recovers a replica from the given primary **/

0 commit comments

Comments
 (0)