yandrey321 commented on code in PR #10837:
URL: https://github.com/apache/ozone/pull/10837#discussion_r3749898686
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java:
##########
@@ -1275,21 +1272,21 @@ public void testScmClusterIsInExpectedState1()
* Cluster State : Move healthy node back to healthy state, move other 2
* nodes to Stale State.
*
- * We heartbeat healthy node after 1 second and let other 2 nodes elapse
- * the 3 second windows.
+ * We heartbeat healthy node partway through and let other 2 nodes elapse
+ * the 1 second stale window.
*/
nodeManager.processHeartbeat(healthyNode);
nodeManager.processHeartbeat(staleNode);
nodeManager.processHeartbeat(deadNode);
- Thread.sleep(1500);
+ Thread.sleep(500);
nodeManager.processHeartbeat(healthyNode);
- Thread.sleep(2 * 1000);
+ Thread.sleep(667);
Review Comment:
Magic number?
--
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]