From ce239f77b08eef20e0a0995cc0736116c39ee503 Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Tue, 2 Apr 2024 17:10:40 -0700 Subject: [PATCH] Fix comment on beforeIndexShardClosed Signed-off-by: Marc Handalian --- .../indices/replication/SegmentReplicationSourceService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/indices/replication/SegmentReplicationSourceService.java b/server/src/main/java/org/opensearch/indices/replication/SegmentReplicationSourceService.java index bf59ac5110c26..ca89741d5bb55 100644 --- a/server/src/main/java/org/opensearch/indices/replication/SegmentReplicationSourceService.java +++ b/server/src/main/java/org/opensearch/indices/replication/SegmentReplicationSourceService.java @@ -217,7 +217,7 @@ protected void doClose() throws IOException { /** * - * After a primary shard is closed, cancel any ongoing replications to release incref'd segments. + * Before a primary shard is closed, cancel any ongoing replications to release incref'd segments. */ @Override public void beforeIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, Settings indexSettings) {