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

Flush pressure assertion may fail in testFlushThroughputTuning

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      From https://builds.apache.org/job/PreCommit-HBASE-Build/14137/artifact/patchprocess/patch-unit-hbase-server.txt :

      [ERROR] testFlushThroughputTuning(org.apache.hadoop.hbase.regionserver.throttle.TestFlushWithThroughputController)  Time elapsed: 17.446 s  <<< FAILURE!
      java.lang.AssertionError: expected:<0.0> but was:<1.2906294173808417E-6>
      	at org.apache.hadoop.hbase.regionserver.throttle.TestFlushWithThroughputController.testFlushThroughputTuning(TestFlushWithThroughputController.java:185)
      

      Here is the related assertion:

          assertEquals(0.0, regionServer.getFlushPressure(), EPSILON);
      

      where EPSILON = 1E-6

      In the above case, due to margin of 2.9E-7, the assertion didn't pass.
      It seems the epsilon can be adjusted to accommodate different workload / hardware combination.

      Attachments

        1. 21097.v1.txt
          0.9 kB
          Ted Yu
        2. HBASE-21097.patch
          5 kB
          Duo Zhang
        3. 21097.v2.txt
          1 kB
          Ted Yu
        4. 21097.v4.txt
          1 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: