Sega76 commented on a change in pull request #8402:
URL: https://github.com/apache/ignite/pull/8402#discussion_r524487750



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java
##########
@@ -1456,6 +1470,29 @@ public CancelSnapshotCallable(String snpName) {
         }
     }
 
+    /** Get the status of a cluster snapshot operation. */
+    @GridInternal
+    private static class StatusSnapshotCallable implements IgniteClosure<Void, 
Object> {
+        /** Serial version UID. */
+        private static final long serialVersionUID = 0L;
+
+        /** Auto-injected grid instance. */
+        @IgniteInstanceResource
+        private transient IgniteEx ignite;
+
+        /** */
+        public StatusSnapshotCallable() {
+        }
+
+        /** {@inheritDoc} */
+        @Override public Object apply(Void unused) {
+            if 
(ignite.context().cache().context().snapshotMgr().isSnapshotCreating())

Review comment:
       fixed

##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotMXBeanImpl.java
##########
@@ -47,4 +50,11 @@ public SnapshotMXBeanImpl(GridKernalContext ctx) {
     @Override public void cancelSnapshot(String snpName) {
         mgr.cancelSnapshot(snpName).get();
     }
+
+    /** {@inheritDoc} */
+    @Override public Collection<Object> statusSnapshot() {
+        return mgr.statusSnapshot().get().stream()

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.

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


Reply via email to