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?
-Arshad -----Original Message----- From: Flavio Junqueira [mailto:[email protected]] Sent: 07 September 2016 16:45 To: [email protected] Cc: [email protected] 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. -Flavio > On 07 Sep 2016, at 11:35, Mohammad arshad <[email protected]> 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
