Skip to content

Commit e6d1fc9

Browse files
guojialiang92jainankitk
authored andcommitted
clean up completedReplications when SegmentReplicator.cancel is invoked (opensearch-project#18856)
Signed-off-by: guojialiang <[email protected]> Signed-off-by: Ankit Jain <[email protected]>
1 parent 45ad0b7 commit e6d1fc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/opensearch/indices/replication/SegmentReplicator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ void cancel(ShardId shardId, String reason) {
399399
onGoingMergedSegmentReplications.cancelForShard(shardId, reason);
400400
replicationCheckpointStats.remove(shardId);
401401
primaryCheckpoint.remove(shardId);
402+
completedReplications.remove(shardId);
402403
}
403404

404405
SegmentReplicationTarget get(ShardId shardId) {

0 commit comments

Comments
 (0)