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

This commit is contained in:
tedyu 2016-09-07 11:36:18 -07:00
parent 6f73ef2dff
commit 354706a7d8
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 {
checkZk().sync(path, null, null);
checkZk().sync(path, cb, null);
}
/**

View File

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