Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25157

TestMasterRegionCompaction is flaky

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha-1
    • None
    • master, test
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: