NSAmelchev commented on code in PR #10286:
URL: https://github.com/apache/ignite/pull/10286#discussion_r1012367614


##########
modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerTest.java:
##########
@@ -3061,6 +3071,71 @@ public void testClusterSnapshotCreateSynchronously() 
throws Exception {
         doClusterSnapshotCreate(true);
     }
 
+    /**
+     * Test that 'not OK' status of snapshot operation is set if the operation 
produces a warning.
+     *
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testClusterCreateSnapshotWarning() throws Exception {
+        IgniteConfiguration cfg = 
getConfiguration(getTestIgniteInstanceName(0));
+        cfg.getConnectorConfiguration().setHost("localhost");
+
+        String targetMsg = U.field(DataStreamerUpdatesHandler.class, 
"WRN_MSG");
+
+        AtomicReference<Exception> simulationEx = new AtomicReference<>();

Review Comment:
   Why do we need it?



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