nizhikov commented on code in PR #10263:
URL: https://github.com/apache/ignite/pull/10263#discussion_r989941611


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -773,6 +790,108 @@ private IgniteInternalFuture<SnapshotOperationResponse> 
initLocalSnapshotStartSt
                 "on the local node [missed=" + leftGrps + ", nodeId=" + 
cctx.localNodeId() + ']'));
         }
 
+        if (req.incremental()) {
+            try {
+                checkIncrementalCanBeCreated(req.snapshotName(), 
req.snapshotPath());
+            }
+            catch (IgniteCheckedException e) {
+                return new GridFinishedFuture<>(e);
+            }
+
+            return initLocalIncrementalSnapshot(req);
+        }
+        else
+            return initLocalFullSnapshot(req, grpIds, withMetaStorage);
+    }
+
+    /**
+     * @param req Request on snapshot creation.
+     * @return Future which will be completed when a snapshot has been started.
+     */
+    private IgniteInternalFuture<SnapshotOperationResponse> 
initLocalIncrementalSnapshot(SnapshotOperationRequest req) {
+        SnapshotMetadata meta = readSnapshotMetadata(new File(

Review Comment:
   Fixed.



-- 
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