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 A4AFC113DB for ; Thu, 12 Jun 2014 18:43:39 +0000 (UTC) Received: (qmail 55640 invoked by uid 500); 12 Jun 2014 18:43:39 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 55591 invoked by uid 500); 12 Jun 2014 18:43:38 -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 55580 invoked by uid 99); 12 Jun 2014 18:43:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 18:43:38 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mudit.f2004912@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-we0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 18:43:32 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so1723225wes.22 for ; Thu, 12 Jun 2014 11:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=0V4U5GnyJnhV5JlMy/Au80G5bnSnMqYarj1BkAbV38o=; b=arM9iQEumeeU/S6hS88hYqr2q4+0alJPw29Q3Kexc7xeGvVL27e2s/5v+LOFXwMlaV e5wZNxbriC4ahSaCxpxwqQ4LkcpwGx4NH40kuUA3hEm5dt5xBqEmW8B1Oi5AR5U4kX7+ 7orLmOhfaoC8AiSO2+Ktjsg3h+oUnBNGeli5MBWk0cpVDtN5GN7/AV1gMMsM2qqFp++w vNAZnTucOL/+gqnUrl44bJs08OqwAeGZsvSt9W7ffW1QgToQcPBgUv04lxO2p53Ko8MY d8JYVSI+zftuJ4CS5b/XaTjnk/Fs+dg9gvRNrmLxeZ82I0O7esrJPevtTO/h+QQDLZlx K+cw== X-Received: by 10.194.119.34 with SMTP id kr2mr65283484wjb.34.1402598591223; Thu, 12 Jun 2014 11:43:11 -0700 (PDT) Received: from [192.168.1.102] ([89.159.237.97]) by mx.google.com with ESMTPSA id gb6sm34833473wic.6.2014.06.12.11.43.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Jun 2014 11:43:09 -0700 (PDT) From: Mudit Verma Content-Type: multipart/alternative; boundary="Apple-Mail=_D04DE2EF-9075-4B70-BB6E-9BCF02EF1CA0" Message-Id: <8987A079-1D72-4ADC-8A76-B9F0C4C43EE3@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Watch: One time event -> Loss of event Date: Thu, 12 Jun 2014 20:43:08 +0200 References: <005001cf8664$b697b180$23c71480$@yahoo.com> To: user@zookeeper.apache.org In-Reply-To: <005001cf8664$b697b180$23c71480$@yahoo.com> X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_D04DE2EF-9075-4B70-BB6E-9BCF02EF1CA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I don=92t think your solution will work. For example, somebody might = change the data between you reading the data again for comparision and = you setting the watch. You just can not gaurantee no operation will = occur between reading and setting the watch, unless you use transactions = (so that reading and setting the watch both go atomically).=20 Also, in your solution, I will have to keep the previous data for all = znodes (where I want watches). That=92s like replicated everything = locally as well. =20 On 12 Jun 2014, at 07:35 pm, Flavio Junqueira = wrote: > =20 --Apple-Mail=_D04DE2EF-9075-4B70-BB6E-9BCF02EF1CA0--