[ https://issues.apache.org/jira/browse/HBASE-23669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang updated HBASE-23669: ------------------------------ Fix Version/s: (was: 2.1.5) (was: 2.1.6) (was: 2.1.8) > ZNodeClearer#clear() throws IllegalArgumentException > ----------------------------------------------------- > > Key: HBASE-23669 > URL: https://issues.apache.org/jira/browse/HBASE-23669 > Project: HBase > Issue Type: Bug > Affects Versions: 2.1.5 > Reporter: kangkang.guo > Assignee: kangkang.guo > Priority: Major > Attachments: HBASE-23669.branch-2.1.0001.patch, > HBASE-23669.master.patch > > > 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) > -- This message was sent by Atlassian Jira (v8.20.1#820001)