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 F16299652 for ; Mon, 4 Jun 2012 22:25:02 +0000 (UTC) Received: (qmail 15610 invoked by uid 500); 4 Jun 2012 22:25:02 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 15573 invoked by uid 500); 4 Jun 2012 22:25:02 -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 15565 invoked by uid 500); 4 Jun 2012 22:25:02 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org Received: (qmail 15562 invoked by uid 99); 4 Jun 2012 22:25:02 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 22:25:02 +0000 Received: from localhost (HELO mail-gh0-f176.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 22:25:01 +0000 Received: by ghbz10 with SMTP id z10so3855024ghb.35 for ; Mon, 04 Jun 2012 15:25:00 -0700 (PDT) Received: by 10.60.14.9 with SMTP id l9mr13612841oec.17.1338848700112; Mon, 04 Jun 2012 15:25:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.232.1 with HTTP; Mon, 4 Jun 2012 15:24:39 -0700 (PDT) In-Reply-To: <1338821133483-7577520.post@n2.nabble.com> References: <1338777702487-7577513.post@n2.nabble.com> <6F8DF32E96493B44B00A17248867481E2A68BDA3@szxeml522-mbx.china.huawei.com> <6F8DF32E96493B44B00A17248867481E2A68BFA6@szxeml522-mbx.china.huawei.com> <1338821133483-7577520.post@n2.nabble.com> From: Patrick Hunt Date: Mon, 4 Jun 2012 15:24:39 -0700 Message-ID: Subject: Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode? To: user@zookeeper.apache.org Cc: zookeeper-user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jun 4, 2012 at 7:45 AM, iamct wrote: > > I set a watch on one znode=E3=80=82 A change happen=EF=BC=8Cthe service m= y client had > connected sent the =C2=A0packet =EF=BC=8Cbut this time=EF=BC=8Cmy client = becomes partitioned from > the ZK serving cluster=E3=80=82 > =C2=A0When my session reconnect,may I get the event=EF=BC=9F > Yes, you will get the notification when (if) the session eventually reconnects to the service. > I think it is not=E3=80=82 > but in the > http://zookeeper.apache.org/doc/current/zookeeperProgrammers.html#ch_zkWa= tches > said =EF=BC=9A ZooKeeper provides an ordering guarantee: a client will ne= ver see a > change for which it has set a watch until it first sees the watch event. > That's correct. When the client reconnects you'll get any notifications that you missed. Patrick