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

ZNodeClearer#clear() throws IllegalArgumentException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.5
    • Fix Version/s: 2.1.5, 2.1.6, 2.1.8
    • Component/s: None
    • Labels:
      None

      Description

      Precondition:

      hbase.balancer.tablesOnMaster = true

      hbase.balancer.tablesOnMaster.systemTablesOnly = true

      In case of master-rs collocation HBASE_ZNODE_FILE is overwritten by regionserver process in HRegionServer#handleReportForDutyResponse() here is how it looks on master server:

      [hadoop@master-node data]$ cat hbase-hadoop-master.znode

      /hbase/rs/master-node,16000,1578371505720

      When ZNodeClearer#clear(), the rsZNode is also splicing with the contents of the file, causing an exception:

      java.lang.IllegalArgumentException: Invalid path string "/hbase/rs//hbase/rs/master-node,16000,1578371503003" caused by empty node name specified @10

              at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:99)

              at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:851)

              at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.delete(RecoverableZooKeeper.java:166)

              at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNodeFailSilent(ZKUtil.java:1259)

              at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNodeFailSilent(ZKUtil.java:1251)

              at org.apache.hadoop.hbase.ZNodeClearer.clear(ZNodeClearer.java:188)

              at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:144)

              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)

              at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)

              at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:3117)

       

        Attachments

        1. HBASE-23669.master.patch
          1 kB
          kangkang.guo
        2. HBASE-23669.branch-2.1.0001.patch
          1 kB
          kangkang.guo

          Issue Links

            Activity

              People

              • Assignee:
                gk_coder kangkang.guo
                Reporter:
                gk_coder kangkang.guo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: