[ https://issues.apache.org/jira/browse/HBASE-27181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Huaxiang Sun updated HBASE-27181: --------------------------------- Description: Replica region id is not recognized by hbck2's setRegionState as it does not show up in meta. We run into cases that it needs to set region state in meta for replica regions in order to fix inconsistency. We ended up writing the state manually into meta table and did a master failover to sync state from meta table. hbck2's setRegionState needs to support replica region id and handles it nicely. Currently, setRegionState does not use MasterRpcServices#setRegionStateInMeta. There is an issue in setRegionStateInMeta to support replica regions. After that is fixed, and setRegionState uses setRegionStateInMeta to set the region state, it will support replica Id. was: Replica region id is not recognized by hbck2's setRegionState as it does not show up in meta. We run into cases that it needs to set region state in meta for replica regions in order to fix inconsistency. We ended up writing the state manually into meta table and did a master failover to sync state from meta table. hbck2's setRegionState needs to support replica region id and handles it nicely. > Replica region support in HBCK2 setRegionState option > ----------------------------------------------------- > > Key: HBASE-27181 > URL: https://issues.apache.org/jira/browse/HBASE-27181 > Project: HBase > Issue Type: Improvement > Components: hbck2 > Affects Versions: 2.4.13 > Reporter: Huaxiang Sun > Assignee: Huaxiang Sun > Priority: Minor > > Replica region id is not recognized by hbck2's setRegionState as it does not > show up in meta. We run into cases that it needs to set region state in meta > for replica regions in order to fix inconsistency. We ended up writing the > state manually into meta table and did a master failover to sync state from > meta table. > > hbck2's setRegionState needs to support replica region id and handles it > nicely. > Currently, setRegionState does not use > MasterRpcServices#setRegionStateInMeta. There is an issue in > setRegionStateInMeta to support replica regions. After that is fixed, and > setRegionState uses setRegionStateInMeta to set the region state, it will > support replica Id. -- This message was sent by Atlassian Jira (v8.20.10#820010)