From 3471fcc1094c6dbd5708929d03ae0c79f4a21f3c Mon Sep 17 00:00:00 2001 From: Rishikesh1159 Date: Fri, 9 Dec 2022 20:49:35 +0000 Subject: [PATCH] Remove unnecessary condition check. Signed-off-by: Rishikesh1159 --- .../opensearch/indices/cluster/IndicesClusterStateService.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java b/server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java index 15df8ac821954..180032bfb621f 100644 --- a/server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java +++ b/server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java @@ -787,7 +787,6 @@ public void handleRecoveryDone(ReplicationState state, ShardRouting shardRouting // For Segment Replication enabled indices, we want replica shards to start a replication event to fetch latest segments before it // is marked as Started. if (indexShard != null - && indexShard.indexSettings().isSegRepEnabled() && shardRouting.primary() == false && shardRouting.state() == ShardRoutingState.INITIALIZING && indexShard.state() == IndexShardState.POST_RECOVERY) {