Cyrill commented on code in PR #4688:
URL: https://github.com/apache/ignite-3/pull/4688#discussion_r1847932057


##########
modules/runner/src/testFixtures/java/org/apache/ignite/internal/Cluster.java:
##########
@@ -357,6 +357,13 @@ public Ignite node(int index) {
         return Objects.requireNonNull(nodes.get(index));
     }
 
+    /**
+     * Returns an Ignite node (a member of the cluster) by its index.
+     */
+    public @Nullable Ignite nullableNode(int index) {
+        return nodes.get(index);

Review Comment:
   This is due to the logic of starting/stopping nodes in Cluster. When a node 
is stopped, the following code is called: `nodes.set(index, null);`, no index 
shift is performed.



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to