zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad arshad <mohammad.ars...@huawei.com>
Subject RE: ZooKeeper Sync API path parameter does not have any impact.
Date Wed, 07 Sep 2016 15:47:16 GMT
So path is completely for ZooKeeper client. It has nothing to do with server. Therefore whether
I execute sync /path1 or sync /path2, sync request will complete in the same time. right?

-----Original Message-----
From: Flavio Junqueira [mailto:fpj@apache.org] 
Sent: 07 September 2016 16:45
To: user@zookeeper.apache.org
Cc: dev@zookeeper.apache.org
Subject: Re: ZooKeeper Sync API path parameter does not have any impact.

The path parameter helps the app determine the path that the response is referring to. A sync
call is typically associated to a read request to a given path, so the path in the sync call
helps the application make the association to that path.


> On 07 Sep 2016, at 11:35, Mohammad arshad <mohammad.arshad@huawei.com> wrote:
> Hello Everyone
> ZooKeeper sync API takes a path argument.
> But it seems this path is no where used in the server code. Same path is returned from
the server to client again in SyncResponse.
> Is the any other purpose of sync API path parameter.
> Will there be any different impact for below sync commands form zk Cli?
> sync /path1
> sync /path2
> Thanks
> -Arshad

View raw message