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 B95139979 for ; Fri, 2 Mar 2012 19:27:47 +0000 (UTC) Received: (qmail 29249 invoked by uid 500); 2 Mar 2012 19:27:47 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 29220 invoked by uid 500); 2 Mar 2012 19:27:47 -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 29211 invoked by uid 99); 2 Mar 2012 19:27:47 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 19:27:47 +0000 Received: from localhost (HELO mail-ww0-f46.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 19:27:47 +0000 Received: by wgbdq11 with SMTP id dq11so1733061wgb.15 for ; Fri, 02 Mar 2012 11:27:45 -0800 (PST) Received-SPF: pass (google.com: domain of phunt@apache.org designates 10.216.134.205 as permitted sender) client-ip=10.216.134.205; Authentication-Results: mr.google.com; spf=pass (google.com: domain of phunt@apache.org designates 10.216.134.205 as permitted sender) smtp.mail=phunt@apache.org Received: from mr.google.com ([10.216.134.205]) by 10.216.134.205 with SMTP id s55mr38459wei.100.1330716465298 (num_hops = 1); Fri, 02 Mar 2012 11:27:45 -0800 (PST) Received: by 10.216.134.205 with SMTP id s55mr36079wei.100.1330716465276; Fri, 02 Mar 2012 11:27:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.2.205 with HTTP; Fri, 2 Mar 2012 11:27:25 -0800 (PST) In-Reply-To: References: From: Patrick Hunt Date: Fri, 2 Mar 2012 11:27:25 -0800 Message-ID: Subject: Re: Getting data after the watch To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Mar 2, 2012 at 11:23 AM, Amirhossein Kiani wrote: > Many thanks Patrick for pointing me to the new documentation. I just found the other one from Google somehow. > No problem. > So what I think is happening is actually impossible: to do getData() on a node and see the OLD data. in other words, I do not need to loop on a getData() to get the actual new data after being notified about the data change. > The reason that I'm saying that is that's the behavior I'm seeing in my code, but it might be just a bug on my side... Sounds like. Keep in mind that there might be multiple changes btw the time the notification fires and when your getData runs on the server. Perhaps someone's changing it back? :-) Patrick