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:
Jean-Daniel Cryans 2009-07-07 17:53:28 +00:00
parent 9cf697f4df
commit 7f4516cc53
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }