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

AssignProcedure#COMPARATOR may produce incorrect sort order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None
    • Reviewed

    Description

      The intention of AssignProcedure#COMPARATOR is to put the regions in the following order:

      meta regions
      system table regions
      user table regions

      However, the current implementation may produce incorrect sort order.

      With the modified test, the test fails with:

      testComparatorWithMetas(org.apache.hadoop.hbase.master.snapshot.TestAssignProcedure)  Time elapsed: 0.038 sec  <<< FAILURE!
      junit.framework.AssertionFailedError
        at org.apache.hadoop.hbase.master.snapshot.TestAssignProcedure.testComparatorWithMetas(TestAssignProcedure.java:88)
      

      Attachments

        1. 19532.v1.txt
          3 kB
          Ted Yu
        2. 19532.v2.txt
          4 kB
          Ted Yu
        3. 19532.v3.txt
          5 kB
          Ted Yu
        4. 19532.v4.txt
          5 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: