You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Allan Yang (JIRA)" <ji...@apache.org> on 2016/09/07 14:17:20 UTC
[jira] [Created] (HBASE-16572) Sync method in RecoverableZooKeeper
failed to pass callback fucntion in
Allan Yang created HBASE-16572:
----------------------------------
Summary: Sync method in RecoverableZooKeeper failed to pass callback fucntion in
Key: HBASE-16572
URL: https://issues.apache.org/jira/browse/HBASE-16572
Project: HBase
Issue Type: Bug
Components: Zookeeper
Affects Versions: 1.1.4, 2.0.0
Reporter: Allan Yang
Priority: Minor
Fix For: 2.0.0
{code:java}
public void sync(String path, AsyncCallback.VoidCallback cb, Object ctx) throws KeeperException {
checkZk().sync(path, null, null); //callback function cb is not passed in
}
{code}
It is obvious that the callback method is not passed in. Since sync operation in Zookeeper is a 'async' operation, we need a callback method to notify the caller that the 'sync' operation is finished.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)