[ https://issues.apache.org/jira/browse/HBASE-23117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566702#comment-17566702 ]
selina.yan edited comment on HBASE-23117 at 7/14/22 8:10 AM: ------------------------------------------------------------- hello,I want to know how this RegionState 1 is generated.Looking forward to your answer was (Author: JIRAUSER287791): hello,I want to know how this RegionState 1 is generated > Bad enum in hbase:meta info:state column can fail loadMeta and stop startup > --------------------------------------------------------------------------- > > Key: HBASE-23117 > URL: https://issues.apache.org/jira/browse/HBASE-23117 > Project: HBase > Issue Type: Bug > Affects Versions: 2.0.2 > Reporter: Michael Stack > Assignee: Sandeep Pal > Priority: Minor > Fix For: 3.0.0-alpha-1, 2.3.0, 2.2.3 > > > 元数据中的 info:state 字段值错误,导致无法启动集群;loadMeta 不会成功。如果状态不好,应该注意它,补偿,然后继续前进。 > 错误条目是在尝试修复 pre-hbck2 集群中的其他问题时发生的自己的目标。 > 这是一个例外: > {code:java} > {code} > java.lang.IllegalArgumentException:没有 > {code:java} > 枚举 > {code} > 常量 org.apache.hadoop.hbase.master.RegionState.State.1 > {code:java} > {code} > 在 java.lang.Enum.valueOf(Enum.java:238) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.RegionState$State.valueOf(RegionState.java:37) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.RegionStateStore.getRegionState(RegionStateStore.java:338) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.RegionStateStore.visitMetaEntry(RegionStateStore.java:116) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.RegionStateStore.access$100(RegionStateStore.java:59) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.RegionStateStore$1.visit(RegionStateStore.java:87) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.MetaTableAccessor.scanMeta(MetaTableAccessor.java:769) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.MetaTableAccessor.scanMeta(MetaTableAccessor.java:734) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.MetaTableAccessor.scanMeta(MetaTableAccessor.java:690) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.MetaTableAccessor.fullScanRegions(MetaTableAccessor.java:220) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.RegionStateStore.visitMeta(RegionStateStore.java:77) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.AssignmentManager.loadMeta(AssignmentManager.java:1248) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.assignment.AssignmentManager.joinCluster(AssignmentManager.java:1209) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:998) > {code:java} > {code} > 在 > org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2260) > {code:java} > {code} > 在 org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:583) > {code:java} > {code} > 在 java.lang。 > {code:java} > 线程 > {code} > .run( > {code:java} > 线程 > {code} > .java:748) -- This message was sent by Atlassian Jira (v8.20.10#820010)