Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha2
-
None
-
None
-
Reviewed
Description
The test TestDataNodeVolumeFailure#testUnderReplicationAfterVolFailure fails frequently in recent Jenkins buildings. The stack infos:
org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailure.testUnderReplicationAfterVolFailure java.lang.AssertionError: There is no under replicated block after volume failure at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailure.testUnderReplicationAfterVolFailure(TestDataNodeVolumeFailure.java:419)
We would be better using GenericTestUtils.waitFor here to wait for the condition being satisfied.