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


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

Review Comment:
   The only thing we could do to make this a tiny bit more efficient is 
remember which nodes have already seen all the other nodes' indexes in a 
queryable state, but with a delay of 60s in the first place, the time we save 
doing that might not matter.



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