rpuch commented on code in PR #5588: URL: https://github.com/apache/ignite-3/pull/5588#discussion_r2043874593
########## modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/raft/snapshot/PartitionSnapshotStorage.java: ########## @@ -187,9 +211,20 @@ public FailureProcessor failureProcessor() { * Starts an incoming snapshot. */ public SnapshotCopier startIncomingSnapshot(String uri) { + startSnapshotOperation(); + SnapshotUri snapshotUri = SnapshotUri.fromStringUri(uri); - var copier = new IncomingSnapshotCopier(this, snapshotUri, incomingSnapshotsExecutor, waitForMetadataCatchupMs); + var copier = new IncomingSnapshotCopier(this, snapshotUri, incomingSnapshotsExecutor, waitForMetadataCatchupMs) { + @Override + public void close() { Review Comment: I don't have strong arguments against it, it's just a matter of style (looks a bit weird, like a monkey-patch). I don't insist. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org