Mmuzaf commented on a change in pull request #8648:
URL: https://github.com/apache/ignite/pull/8648#discussion_r607800953



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java
##########
@@ -869,6 +895,37 @@ else if (f1.error() instanceof 
IgniteSnapshotVerifyException)
         return res;
     }
 
+    /**
+     * @param name Snapshot name.
+     * @return Future with snapshot metadata obtained from nodes.
+     */
+    IgniteInternalFuture<Map<ClusterNode, List<SnapshotMetadata>>> 
collectSnapshotMetadata(String name) {
+        GridKernalContext kctx0 = cctx.kernalContext();
+
+        kctx0.security().authorize(ADMIN_SNAPSHOT);
+
+        Collection<ClusterNode> bltNodes = 
F.view(cctx.discovery().serverNodes(AffinityTopologyVersion.NONE),
+            (node) -> CU.baselineNode(node, kctx0.state().clusterState()));
+
+        kctx0.task().setThreadContext(TC_SKIP_AUTH, true);
+        kctx0.task().setThreadContext(TC_SUBGRID, bltNodes);
+
+        return kctx0.task().execute(SnapshotMetadataCollectorTask.class, name);
+    }
+
+    /**
+     * @param metas Nodes snapshot metadata.
+     * @return Future with the verification results.
+     */
+    IgniteInternalFuture<IdleVerifyResultV2> 
runSnapshotVerfification(Map<ClusterNode, List<SnapshotMetadata>> metas) {

Review comment:
       `runSnapshotVerfification` > `runSnapshotVerification`




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to