You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/11/15 16:46:46 UTC

[GitHub] [cassandra] dcapwell commented on a change in pull request #1317: Cassandra 17143

dcapwell commented on a change in pull request #1317:
URL: https://github.com/apache/cassandra/pull/1317#discussion_r749505371



##########
File path: test/distributed/org/apache/cassandra/distributed/test/AbstractNetstatsStreaming.java
##########
@@ -523,6 +525,20 @@ public NetstatResults call() throws Exception
                         {
                             sawAnyStreamingOutput = true;
                         }
+                        else
+                        {
+                            // there is a race condition that streaming starts/stops between calls to netstats
+                            // to detect this, check to see if the node has completed a stream
+                            // expected log: [Stream (.*)?] All sessions completed
+                            LogResult<List<String>> logs = node.logs().grep(mark, "\\[Stream .*\\] All sessions completed");
+                            mark = logs.getMark();
+                            if (!logs.getResult().isEmpty())
+                            {
+                                // race condition detected...
+                                logger.warn("Test race condition detected where streaming started/stopped between calls to netstats");

Review comment:
       info makes sense; will lower




-- 
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-unsubscribe@cassandra.apache.org

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



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