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


##########
modules/indexing/src/test/java/org/apache/ignite/util/KillCommandsTests.java:
##########
@@ -472,6 +479,40 @@ public static void doTestCancelContinuousQuery(IgniteEx 
cli, List<IgniteEx> srvs
         }
     }
 
+    /**
+     * Test cancel of the continuous query.
+     *
+     * @param srvs Server nodes.
+     * @param cliCanceler Client connection cancel closure.
+     */
+    public static void doTestCancelClientConnection(List<IgniteEx> srvs, 
Consumer<Long> cliCanceler) {
+        AtomicReference<IgniteClient> cli = new AtomicReference<>(
+            Ignition.startClient(new 
ClientConfiguration().setAddresses(Config.SERVER))
+        );
+
+        assertEquals(ClusterState.ACTIVE, cli.get().cluster().state());
+
+        List<List<?>> conns = execute(srvs.get(0), "SELECT CONNECTION_ID FROM 
SYS.CLIENT_CONNECTIONS");
+
+        assertEquals(1, conns.size());

Review Comment:
   Tests added.



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