Nick Dimiduk created HBASE-25157:
------------------------------------

             Summary: TestMasterRegionCompaction is flaky
                 Key: HBASE-25157
                 URL: https://issues.apache.org/jira/browse/HBASE-25157
             Project: HBase
          Issue Type: Test
          Components: master, test
    Affects Versions: 3.0.0-alpha-1
            Reporter: Nick Dimiduk


{noformat}
[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)
{noformat}

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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to