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

IntegrationTestTimeBoundedRequestsWithRegionReplicas fails with obtuse error when readers have no time to run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • integration tests
    • None
    • Reviewed

    Description

      Just noticed an odd error message that cropped up in some $dayjob internal testing.

      Sometimes, executions of IntegrationTestTimeBoundedRequestsWithRegionReplicas would result in an error:

      Caused by: java.lang.IllegalArgumentException: Please configure hbase.TimeBoundedMultiThreadedReader.runtime
        at org.apache.hadoop.hbase.test.IntegrationTestTimeBoundedRequestsWithRegionReplicas$TimeBoundedMultiThreadedReader.<init>
      

      After digging into the test a bit more, I realized that this is actually failing because the remaining time left after the writers finish (that is, hbase.IntegrationTestTimeBoundedRequestsWithRegionReplicas.runtime minus the time the writers took) was negative. So, the test harness passed a value which always caused this error.

      We should catch when the time available for the readers is negative and throw an appropriate error instructing the human to either increase the amount of time for hbase.IntegrationTestTimeBoundedRequestsWithRegionReplicas.runtime or decrease the amount of data written.

      Attachments

        1. HBASE-17171.001.patch
          3 kB
          Josh Elser

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: