guluo created HBASE-28395:
-----------------------------
Summary: TableNotFoundException when executing 'hbase hbck'
Key: HBASE-28395
URL: https://issues.apache.org/jira/browse/HBASE-28395
Project: HBase
Issue Type: Bug
Components: hbck
Environment: hbase master
Reporter: guluo
*Reproduction:*
Starting hbase cluster
Executing command 'hbase hbck'
TableNotFoundException occur aboubt 'hbase:replication'
{code:java}
//代码占位符
org.apache.hadoop.hbase.replication.ReplicationException: failed to
listAllQueues
at
org.apache.hadoop.hbase.replication.TableReplicationQueueStorage.listAllQueues(TableReplicationQueueStorage.java:289)
at
org.apache.hadoop.hbase.util.hbck.ReplicationChecker.getUnDeletedQueues(ReplicationChecker.java:77)
at
org.apache.hadoop.hbase.util.hbck.ReplicationChecker.checkUnDeletedQueues(ReplicationChecker.java:105)
at
org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixReplication(HBaseFsck.java:2575)
at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:803)
at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:3752)
at
org.apache.hadoop.hbase.util.HBaseFsck$HBaseFsckTool.run(HBaseFsck.java:3551)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:97)
at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:3536)
Caused by: org.apache.hadoop.hbase.TableNotFoundException: hbase:replication
{code}
*Problem analysis:*
hbase does not create the table 'hbase:replication' until the first add_peer
operation would be executed.
However, 'hbase hbck' operation would check the 'hbase:replication', So if this
table has not been created, we would get TableNotFoundException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)