rpuch commented on code in PR #5588:
URL: https://github.com/apache/ignite-3/pull/5588#discussion_r2039750153


##########
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:
   Yes, this is what I had in mind



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to