Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # dev >> the ordering of async and sync requests

Copy link to this message
Re: the ordering of async and sync requests
On Mon, Jun 18, 2012 at 11:01 PM, Michi Mutsuzaki <[EMAIL PROTECTED]> wrote:
> If the user calls an async request followed by a sync request, does
> the zookeeper client guarantee that the sync request won't return
> until the async request callback is invoked? The C client seems to let
> the sync request return first if the sync request was sent from the
> watch triggered by the async request.

There are no such guarantees. If you need ordering guarantees in this
case then either do everything async or sync (single thread), but
don't mix them.