HBASE-1575 HMaster does not handle ZK session expiration
Forgot 3 lines git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@791920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9cf697f4df
commit
7f4516cc53
|
@ -1106,7 +1106,8 @@ public class HMaster extends Thread implements HConstants, HMasterInterface,
|
||||||
if(event.getState() == KeeperState.Expired ||
|
if(event.getState() == KeeperState.Expired ||
|
||||||
(event.getType().equals(EventType.NodeDeleted) &&
|
(event.getType().equals(EventType.NodeDeleted) &&
|
||||||
event.getPath().equals(
|
event.getPath().equals(
|
||||||
this.zooKeeperWrapper.getMasterElectionZNode()))) {
|
this.zooKeeperWrapper.getMasterElectionZNode()))
|
||||||
|
&& !shutdownRequested.get()) {
|
||||||
LOG.error("Master lost its znode, killing itself now");
|
LOG.error("Master lost its znode, killing itself now");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue