maedhroz commented on code in PR #4081:
URL: https://github.com/apache/cassandra/pull/4081#discussion_r2044992938


##########
test/distributed/org/apache/cassandra/distributed/test/sai/SAIUtil.java:
##########
@@ -86,23 +86,26 @@ public static void assertIndexQueryable(Cluster cluster, 
String keyspace, String
      */
     private static void assertIndexesQueryable(Cluster cluster, String 
keyspace, final Iterable<String> indexes)
     {
-        IInvokableInstance localNode = cluster.get(1);
         final List<InetAddressAndPort> nodes =
             cluster.stream()
                    .map(node -> nodeAddress(node.broadcastAddress()))
                    .collect(Collectors.toList());
 
-        localNode.runOnInstance(() -> {
-            for (String index : indexes)
-            {
-                for (InetAddressAndPort node : nodes)
+        for (var localNode : cluster)
+        {
+            if (localNode.isShutdown()) continue;

Review Comment:
   Good addition.



-- 
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: pr-unsubscr...@cassandra.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to