HBASE-16572 Sync method in RecoverableZooKeeper failed to pass callback function in (Allan Yang)

This commit is contained in:
tedyu 2016-09-07 11:35:35 -07:00
parent 7363a76660
commit e9cfbfd107
2 changed files with 2 additions and 1 deletions

View File

@ -763,7 +763,7 @@ public class RecoverableZooKeeper {
} }
public void sync(String path, AsyncCallback.VoidCallback cb, Object ctx) throws KeeperException { public void sync(String path, AsyncCallback.VoidCallback cb, Object ctx) throws KeeperException {
checkZk().sync(path, null, null); checkZk().sync(path, cb, null);
} }
/** /**

View File

@ -196,6 +196,7 @@ import org.mortbay.jetty.servlet.Context;
public class HMaster extends HRegionServer implements MasterServices { public class HMaster extends HRegionServer implements MasterServices {
private static final Log LOG = LogFactory.getLog(HMaster.class.getName()); private static final Log LOG = LogFactory.getLog(HMaster.class.getName());
/** /**
* Protection against zombie master. Started once Master accepts active responsibility and * Protection against zombie master. Started once Master accepts active responsibility and
* starts taking over responsibilities. Allows a finite time window before giving up ownership. * starts taking over responsibilities. Allows a finite time window before giving up ownership.