[
https://issues.apache.org/jira/browse/HBASE-23313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17125813#comment-17125813
]
Duo Zhang commented on HBASE-23313:
-----------------------------------
OK, the RegionInfo proto is also used in SetRegionStateInMetaRequest, where we
need the encoded region name.
Looking at the code, it is a bit strange, that we pass in a proto region info,
but we just use its encoded name to load the actual region info from meta, and
then use the loaded RegionInfo for later processing. So why not just pass an
encoded region name instead of a region info?
> [hbck2] setRegionState should update Master in-memory state too
> ---------------------------------------------------------------
>
> Key: HBASE-23313
> URL: https://issues.apache.org/jira/browse/HBASE-23313
> Project: HBase
> Issue Type: Bug
> Components: hbck2
> Affects Versions: 2.1.7, 2.2.2
> Reporter: Michael Stack
> Assignee: Wellington Chevreuil
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.3.0
>
>
> setRegionState changes the hbase:meta table info:state column. It does not
> alter the Master's in-memory state. This means you have to kill Master and
> have another assume Active Master role of a state-change to be noticed.
> Better if the setRegionState just went via Master and updated Master and
> hbase:meta.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)