HBASE-19120 IllegalArgumentException from ZNodeClearer when master shuts down

This commit is contained in:
tedyu 2017-11-01 09:38:10 -07:00
parent 91273e7b0e
commit f10f4eb121
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class ZNodeClearer {
znodeFileContent = ZNodeClearer.readMyEphemeralNodeOnDisk();
if(ZNodeClearer.tablesOnMaster(conf)) {
//In case of master crash also remove rsZnode since master is also regionserver
ZKUtil.deleteNodeFailSilent(zkw, znodeFileContent);
ZKUtil.deleteNodeFailSilent(zkw, ZKUtil.joinZNode(zkw.znodePaths.rsZNode,znodeFileContent));
return MasterAddressTracker.deleteIfEquals(zkw,
ZNodeClearer.parseMasterServerName(znodeFileContent));
} else {