Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F4F418947 for ; Fri, 6 Nov 2015 20:50:28 +0000 (UTC) Received: (qmail 4887 invoked by uid 500); 6 Nov 2015 20:50:27 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 4828 invoked by uid 500); 6 Nov 2015 20:50:27 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 4816 invoked by uid 99); 6 Nov 2015 20:50:27 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2015 20:50:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BB12D1809BB for ; Fri, 6 Nov 2015 20:50:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_QP_LONG_LINE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2h9tN8MESsWU for ; Fri, 6 Nov 2015 20:50:19 +0000 (UTC) Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 09A552064B for ; Fri, 6 Nov 2015 20:50:19 +0000 (UTC) Received: by qgec40 with SMTP id c40so40381234qge.2 for ; Fri, 06 Nov 2015 12:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:references:in-reply-to:to; bh=5dM7jzeY2Bc2BA9s8dhLaFXaE5LQllH5hQ2IV3J0yEE=; b=r4MHXiHhHF8yFVF8Qr5GgYkEN2uN2znfYKd9qE2YIdP1i+8PFa3ONSa3VjRl7qBbZs uUNjBwdgm+CMMFxH40ibYlhEPx4VhmXxTpVSI9KtC/mwoW6k1aDuwHCFhZ3FojFfVTxI L0o0vkxlXVL6sjBV0i5nWUgVlCJfUd7OFu3PZQXOFLksD10zkyXvsi36Vq+foTzaklpF Xi+mDaes9yOo77prbV8D3906ESy02a+IacKNmwjtYCxrpL06wVD1ujmLMDMtE1tJun31 Mo3diCEU4KMeTaoYh2Kgz1uePnEoqNAIpbP6mzalExN90ZwTsiURedDfIHtnfEGV8Hot 7T3g== X-Received: by 10.140.233.211 with SMTP id e202mr16459719qhc.37.1446843018244; Fri, 06 Nov 2015 12:50:18 -0800 (PST) Received: from [25.53.203.3] ([24.114.87.184]) by smtp.gmail.com with ESMTPSA id o20sm501966qki.42.2015.11.06.12.50.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Nov 2015 12:50:17 -0800 (PST) From: kamel.zaarouri@gmail.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: out of order callbacks of events in ZK Message-Id: Date: Fri, 6 Nov 2015 15:50:16 -0500 References: In-Reply-To: To: user@zookeeper.apache.org X-Mailer: iPhone Mail (13B143) Thanks you for your reply. In that case is there a standard solution to synchronize different clients?=20= If ordered changes to ZK might be seen out of order with certain clients, th= en what is the standard way to synchronize clients? > On Nov 6, 2015, at 3:41 PM, Chris Nauroth wrote= : >=20 > Hello Kamel, >=20 > The behavior you're seeing is not at odds with ZooKeeper's guarantees. > For more details, please refer to the ZooKeeper programmer's guide > statements on consistency guarantees. >=20 > http://zookeeper.apache.org/doc/r3.4.6/zookeeperProgrammers.html#ch_zkGuar= a > ntees >=20 >=20 > In particularly, note the sidebar describing how ZooKeeper does not > guarantee simultaneously consistent cross-client views. >=20 > --Chris Nauroth >=20 >=20 >=20 >=20 >> On 11/6/15, 12:32 PM, "kamel zaarouri" wrote: >>=20 >> Hi zk-users, >>=20 >> Assume this tree: >>=20 >>=20 >> parent1 >> | |____Child1 >> | >> | >> parent2 >> |_____ >>=20 >>=20 >> I have 1 watchers on parent1 and another watcher on parent2. I have those= >> watchers setup to receive updates of the child nodes of both parents. >>=20 >> Child1 is a non-ephemeral node. >>=20 >> If another client: >>=20 >> - Creates an ephemeral node (let's call it ephem2) under parent2 >> then and only then it >> - Updates Child1 >>=20 >> What I am seeing now is that 20% of the time, I receive the callbacks out= >> of order, i.e. I see the Child1 being updated before ephem2 is seen >> created. >>=20 >> Is this is a bug in the client I am using or does ZK not guarantee order >> in >> this way? >>=20 >> Thank you!, >=20