vivekratnavel commented on a change in pull request #760: HDDS-3334. OM Client
failover to next OM on NotLeaderException
URL: https://github.com/apache/hadoop-ozone/pull/760#discussion_r402546061
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHA.java
##########
@@ -726,7 +726,7 @@ public void testOMProxyProviderFailoverToCurrentLeader()
throws Exception {
// information must be returned via the response and a failover must
// happen to the leader proxy node.
createVolumeTest(true);
- Thread.sleep(2000);
+ Thread.sleep(5000);
Review comment:
Can we use lambdaTestUtils instead of sleep?
```suggestion
LambdaTestUtils.await(6000, 2000, () ->
(omFailoverProxyProvider.getCurrentProxyOMNodeId().equals(leaderOMNodeId)));
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]