[
https://issues.apache.org/jira/browse/HBASE-22941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917868#comment-16917868
]
István Tóth commented on HBASE-22941:
-------------------------------------
The attached patch stores the parent regions in META in ascending order.
I have also removed a leftover check for merging exactly two regions, and added
a unit test.
> MetaTableAccessor.getMergeRegions() returns parent regions in random order
> --------------------------------------------------------------------------
>
> Key: HBASE-22941
> URL: https://issues.apache.org/jira/browse/HBASE-22941
> Project: HBase
> Issue Type: Bug
> Affects Versions: master
> Reporter: István Tóth
> Assignee: István Tóth
> Priority: Major
>
> The multi-region merge patch has changed the behaviour of the
> MetaTableAccessor.getMergeRegions() method. Earlier, the parent regions were
> returned in the same order that they were passed to mergeRegion().
> The patch has changed this to return the regions in random order. To be more
> precise, the parent regions are stored in random order in Meta.
> I propose storing and returning the parent regions in ascending order.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)