ayushtkn commented on a change in pull request #1579:
URL: https://github.com/apache/ozone/pull/1579#discussion_r532003305
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHAMetadataOnly.java
##########
@@ -406,6 +406,7 @@ public void testOMRetryCache() throws Exception {
Assert.assertTrue(logCapturer.getOutput().contains("created volume:"
+ volumeName));
+ Thread.sleep(100L);
Review comment:
If in case you are able to repro, try something like this -
```
- Assert.assertTrue(logCapturer.getOutput().contains("created volume:"
- + volumeName));
+ GenericTestUtils.waitFor(() -> StringUtils
+ .countMatches(logCapturer.getOutput(), "created volume:" +
volumeName)
+ == getCluster().getOzoneManagersList().size() + 1, 100, 5000);
```
If this fixes...
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]