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


##########
test/distributed/org/apache/cassandra/distributed/test/HintedHandoffAddRemoveNodesTest.java:
##########
@@ -66,9 +98,10 @@ public void shouldStreamHintsDuringDecommission() throws 
Exception
             
             // Write data using the second node as the coordinator...
             populate(cluster, "decom_hint_test", 2, 0, 128, 
ConsistencyLevel.ONE);
-            Long totalHints = countTotalHints(cluster);
+            
             // ...and verify that we've accumulated hints intended for node 4, 
which is down.
-            assertThat(totalHints).isGreaterThan(0);
+            Awaitility.await().until(() -> countTotalHints(cluster.get(2)) > 
0);

Review Comment:
   The metric for total hints is updated async from the actual write...



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to