[ https://issues.apache.org/jira/browse/HBASE-20997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570577#comment-16570577 ]
huaxiang sun commented on HBASE-20997: -------------------------------------- Hi [~yuzhih...@gmail.com], for branch-2, getRegionAssignments() is using regionMap, which is built within loadMeta(). This is different from branch-1, it builds a specialMap for that. Regarding with regression, if you think the test is needed to make sure that regionMap is consistent across master failover for branch-2, I can create a new jira to track it. Thanks. > rebuildUserRegions() does not build ReplicaMapping during master switchover > --------------------------------------------------------------------------- > > Key: HBASE-20997 > URL: https://issues.apache.org/jira/browse/HBASE-20997 > Project: HBase > Issue Type: Bug > Components: master > Affects Versions: 1.2.6, 1.3.2, 1.5.0, 1.4.6 > Reporter: huaxiang sun > Assignee: huaxiang sun > Priority: Major > Attachments: HBASE-20997-branch-1-v1.patch, > HBASE-20997-branch-1-v2.patch, HBASE-20997-branch-1-v4.patch, > HBASE-20997-branch-1-v5.patch, HBASE-20997-branch-1-v6.patch > > > During master switchover, rebuildUserRegions() does not rebuild master > in-memory defaultReplicaToOtherReplicas map. This puts the cluster in an > inconsistent state. In read replica case, it causes replica parent region > stay online without being unassigned. -- This message was sent by Atlassian JIRA (v7.6.3#76005)