Skip to content

Commit 4ea54d1

Browse files
committed
Clean up completedReplications when SegmentReplicator.cancel is invoked
Signed-off-by: guojialiang <[email protected]>
1 parent c985636 commit 4ea54d1

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
@@ -395,6 +395,7 @@ void cancel(ShardId shardId, String reason) {
395395
onGoingMergedSegmentReplications.cancelForShard(shardId, reason);
396396
replicationCheckpointStats.remove(shardId);
397397
primaryCheckpoint.remove(shardId);
398+
completedReplications.remove(shardId);
398399
}
399400

400401
SegmentReplicationTarget get(ShardId shardId) {

0 commit comments

Comments
 (0)