Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E24A2186CF for ; Tue, 1 Dec 2015 20:30:35 +0000 (UTC) Received: (qmail 11145 invoked by uid 500); 1 Dec 2015 20:30:35 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 11099 invoked by uid 500); 1 Dec 2015 20:30:35 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 11089 invoked by uid 99); 1 Dec 2015 20:30:35 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 20:30:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 390C1C39FC for ; Tue, 1 Dec 2015 20:30:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zOvwuPrSYcxg for ; Tue, 1 Dec 2015 20:30:30 +0000 (UTC) Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 0A9C020267 for ; Tue, 1 Dec 2015 20:30:30 +0000 (UTC) Received: by ykdr82 with SMTP id r82so22037120ykd.3 for ; Tue, 01 Dec 2015 12:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FKkFstchcETbEJ8fPnXxYXr9qRmgAIN4sCmxC8hxfRA=; b=h92kokbGNwiEeHI2VL2jPo8WNVQQwuYjI854xAQ+akRx5mNbJug0H6aqB1AEiCXFOX /sIbT+iFLk9ip6f6avkhGLHurTNr6ADQzert5oBa+X8j6TFztzywuHe/pgyGHg32ndoc AvBYcj8WRGC7Qe+iIgXBPkoWGnwQh2i5x+BHHl8stBsTGBkte7YNPrLdH1QbiaNRgzt6 Zyfo/KEtxD3cj6E86HQ7atn8aLFSBZ3tdoBRgqeRerezzNfXpUP0It/jfnzO6cr1/SVR QCQFBZIHC/45w34YD58ule29N/3kCFU6PXJDbSrOiJOSy0jEDTmu4Hl47atvynMfUeaO ZEOw== MIME-Version: 1.0 X-Received: by 10.129.124.130 with SMTP id x124mr61703166ywc.34.1449001829031; Tue, 01 Dec 2015 12:30:29 -0800 (PST) Received: by 10.37.207.76 with HTTP; Tue, 1 Dec 2015 12:30:28 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Dec 2015 17:30:28 -0300 Message-ID: Subject: Re: getData Watcher and ConnectionLossException From: Alvaro Gareppe To: user@curator.apache.org Content-Type: multipart/alternative; boundary=001a1149311e4c70130525dc079f --001a1149311e4c70130525dc079f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes.. I know that the case is a little confusing.. I'm trying to reproduce in a simple example.. When I have the code I'll post it in this thread Thank you On Tue, Dec 1, 2015 at 4:51 PM, Jordan Zimmerman wrote: > I don=E2=80=99t totally follow what you=E2=80=99re saying. But, if you=E2= =80=99re connection to ZK > lapses past the session timeout, you will lose all your ephemeral nodes a= s > well as any watchers. I=E2=80=99m not sure if this helps. You might try t= he ZK > mailing list too. > > On Dec 1, 2015, at 1:21 PM, Alvaro Gareppe wrote: > > This is my case > > I open a connection > set a connection listener > kill the zookeeper connection > try to do a node delete (or whatever) > > If I do that and the connection gets restablished as expected.. I got the > SUSPENDED state in linstener and immediately after the RECONNECTED one an= d > delete succeds > > > If I register a deleteWatcher for any node before killing the connection > all woks the same way BUT if a register a dataWatcher then I get a lot of > ConnectionsLossExceptions in log and after a while i get the CONECTED eve= nt > and a loose every ephemeral nodes in the process.. besides that the > connection is established immediately (cause I see it in JMX tree) so aft= er > this I can do the delete of the node.. > > There is a way to have the same reconnection process with getData watcher > and exists watcher ? > > -- > Ing. Alvaro Gareppe > agareppe@gmail.com > > > --=20 Ing. Alvaro Gareppe agareppe@gmail.com --001a1149311e4c70130525dc079f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes.. I know that the case is a little confusing.. I'm= trying to reproduce in a simple example.. When I have the code I'll po= st it in this thread=C2=A0

Thank you=C2=A0

On Tue, Dec 1, 2015= at 4:51 PM, Jordan Zimmerman <jordan@jordanzimmerman.com>= wrote:
I don=E2=80=99t totally follow what you=E2=80=99re saying. B= ut, if you=E2=80=99re connection to ZK lapses past the session timeout, you= will lose all your ephemeral nodes as well as any watchers. I=E2=80=99m no= t sure if this helps. You might try the ZK mailing list too.

On Dec 1, 2015, at 1:= 21 PM, Alvaro Gareppe <agareppe@gmail.com> wrote:

Thi= s is my case

I =C2=A0open a connection=C2=A0
s= et a connection listener
kill the zookeeper connection=C2=A0
try to do a node delete (or whatever)

If I d= o that and the connection gets restablished as expected.. I got the SUSPEND= ED state in linstener and immediately after the RECONNECTED one and delete = succeds


If I register a deleteW= atcher for any node before killing the connection all woks the same way BUT= if a register a dataWatcher then I get a lot of ConnectionsLossExceptions = in log and after a while i get the CONECTED event and a loose every ephemer= al nodes in the process.. besides that the connection is established immedi= ately (cause I see it in JMX tree) so after this I can do the delete of the= node..=C2=A0

There is a way to have the same reco= nnection process with getData watcher and exists watcher ?
<= br>
--
Ing. Alvaro Gareppe
agareppe@gmail.com




--
Ing. Alva= ro Gareppe
agare= ppe@gmail.com
--001a1149311e4c70130525dc079f--