Description
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.298 s <<< FAILURE! - in org.apache.hadoop.hbase.master.region.TestMasterRegionCompaction [ERROR] org.apache.hadoop.hbase.master.region.TestMasterRegionCompaction.test Time elapsed: 10.269 s <<< FAILURE! java.lang.AssertionError: expected:<1> but was:<4> at org.apache.hadoop.hbase.master.region.TestMasterRegionCompaction.test(TestMasterRegionCompaction.java:136)
This test uses calls to Thread.sleep of fixed durations instead of the waitFor pattern of retries. It's looking for side-effects of a background thread that may not be scheduled on precisely the cadence that the test expects, especially in an overloaded test environment.