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 49D699234 for ; Wed, 14 Mar 2012 12:07:23 +0000 (UTC) Received: (qmail 7431 invoked by uid 500); 14 Mar 2012 12:07:22 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 7301 invoked by uid 500); 14 Mar 2012 12:07:22 -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 7289 invoked by uid 99); 14 Mar 2012 12:07:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 12:07:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Jim.Carroll@navteq.com designates 204.120.70.37 as permitted sender) Received: from [204.120.70.37] (HELO xmailfargo.navteq.com) (204.120.70.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 12:07:14 +0000 Received: from fargo-spamfw.navteq.com (navteq-spamfw.navteq.com [10.6.10.131]) by xmailfargo.navteq.com (8.13.6/8.13.6) with ESMTP id q2EBJGsL008721 for ; Wed, 14 Mar 2012 06:19:16 -0500 Received: from imailfargo.navteq.com (localhost [127.0.0.1]) by fargo-spamfw.navteq.com (Spam & Virus Firewall) with ESMTP id 523A64B9E959 for ; Wed, 14 Mar 2012 07:06:53 -0500 (CDT) Received: from imailfargo.navteq.com (imailfargo.navteq.com [10.6.10.130]) by fargo-spamfw.navteq.com with ESMTP id SYCEYhJ5ZBFHuX1j for ; Wed, 14 Mar 2012 07:06:53 -0500 (CDT) Received: from TRF-EX-HT.ad.navteq.com (trf-ex-ht.ad.navteq.com [10.19.74.58]) by imailfargo.navteq.com (8.13.6/8.13.6) with ESMTP id q2EC6qnQ012551 for ; Wed, 14 Mar 2012 07:06:53 -0500 Received: from TRF-EX-MB01.ad.navteq.com ([fe80::64ac:eb4f:edf7:ae8f]) by TRF-EX-HT.ad.navteq.com ([fe80::1f4:1b59:a8bc:4bd3%11]) with mapi; Wed, 14 Mar 2012 08:06:52 -0400 From: "Carroll, Jim" To: "user@zookeeper.apache.org" Date: Wed, 14 Mar 2012 08:06:52 -0400 Subject: Question about watcher guarantees Thread-Topic: Question about watcher guarantees Thread-Index: AQHNAdrxPQU1qD7OjEmLS/Xu3YoUgg== Message-ID: <1494A31B6C07164EB6B2D2BDFECA19351A34C0C9C9@TRF-EX-MB01.ad.navteq.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I found two places in the documentation that explain that I can miss change= events in watchers due to the "one-time" nature of set watches. This makes= sense. However, some of the examples (e.g. Barrier) assume that at least t= he default watcher will never miss a change event. Can I safely make that assumption about the default watcher? If so, can I use the "path" information to avoid the "flood" of clients get= ting the current state of the node hierarchy? For example, if I assume I wo= nt miss any events in the main watcher and I get a NodeCreated event with t= he path, can I simply update my client with that information and assume I'm= up to date? This would run contrary to the answer provided for the FAQ que= stion with the label "Why doesn't the NodeChildrenChanged and NodeDataChang= ed watch events return more information about the change?" Thanks Jim The information contained in this communication may be CONFIDENTIAL and is = intended only for the use of the recipient(s) named above. If you are not = the intended recipient, you are hereby notified that any dissemination, dis= tribution, or copying of this communication, or any of its contents, is str= ictly prohibited. If you have received this communication in error, please= notify the sender and delete/destroy the original message and any copy of = it from your computer or paper files.