You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/12/16 15:44:00 UTC

[jira] [Created] (HBASE-19532) AssignProcedure#COMPARATOR may produce incorrect sort order

Ted Yu created HBASE-19532:
------------------------------

             Summary: AssignProcedure#COMPARATOR may produce incorrect sort order
                 Key: HBASE-19532
                 URL: https://issues.apache.org/jira/browse/HBASE-19532
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu
            Assignee: Ted Yu
            Priority: Critical


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:
{code}
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)
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)