Description
There have been dozens of intermittent failing unit tests because they depend on fixed-interval sleep to wait for conditions to reach before assertion. This umbrella jira is to replace these sleep statements with:
- GenericTestUtils.waitFor() to retry the conditions/assertions
- Trigger internal state change of code to test, e.g. for MiniDFSCluster we can trigger {BlockReports,HeartBeats,DeletionReports}
- Fails fast if specific exceptions are caught
- Coordinate the JUnit thread with activities of the internal threads
- ad-hoc fixes...
p.s. I don't know how closures in Java 8 comes into play but I'd like to see any effort.
Attachments
Issue Links
- contains
-
HADOOP-10823 TestReloadingX509TrustManager is flaky
- Resolved
-
HADOOP-13375 o.a.h.security.TestGroupsCaching.testBackgroundRefreshCounters seems flaky
- Resolved
- is related to
-
HDFS-10891 Über-jira: Test Improvement by adding missing test cases for existing code
- Resolved