Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13935

Orphaned namespace table ZK node should not prevent master to start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.98.13
    • 0.98.14, 1.0.2, 1.2.0, 1.1.1, 1.3.0
    • master
    • None
    • Reviewed

    Description

      Before we have the state-of-art Procedure V2 feature (HBASE 1.0 release or older), we frequently see the following issue (orphaned ZK node) that prevent master to start (at least in testing):

      2015-06-16 17:54:36,472 FATAL [master:10.0.0.99:60000] master.HMaster: Unhandled exception. Starting shutdown.
      org.apache.hadoop.hbase.TableExistsException: hbase:namespace
      	at org.apache.hadoop.hbase.master.handler.CreateTableHandler.prepare(CreateTableHandler.java:137)
      	at org.apache.hadoop.hbase.master.TableNamespaceManager.createNamespaceTable(TableNamespaceManager.java:232)
      	at org.apache.hadoop.hbase.master.TableNamespaceManager.start(TableNamespaceManager.java:86)
      	at org.apache.hadoop.hbase.master.HMaster.initNamespace(HMaster.java:1123)
      	at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:947)
      	at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:618)
      	at java.lang.Thread.run(Thread.java:745)
      2015-06-16 17:54:36,472 INFO  [master:10.0.0.99:60000] master.HMaster: Aborting
      

      The above call trace is from a 0.98.x test run. We saw similar issue in 1.0.x run, too.

      The proposed fix is to ignore the zk node and force namespace table creation to be complete so that master can start successfully.

      Attachments

        1. HBASE-13935.v1-branch-1.patch
          8 kB
          Stephen Yuan Jiang
        2. HBASE-13935.v1-branch-1.0.patch
          7 kB
          Stephen Yuan Jiang
        3. HBASE-13935.v1-0.98.patch
          5 kB
          Stephen Yuan Jiang

        Activity

          People

            syuanjiang Stephen Yuan Jiang
            syuanjiang Stephen Yuan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: