Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90B4D200B4B for ; Thu, 21 Jul 2016 14:22:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F2D4160A6D; Thu, 21 Jul 2016 12:22:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B376F160A68 for ; Thu, 21 Jul 2016 14:22:30 +0200 (CEST) Received: (qmail 26460 invoked by uid 500); 21 Jul 2016 12:22:29 -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 26450 invoked by uid 99); 21 Jul 2016 12:22:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 12:22:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 787C51A5D3D for ; Thu, 21 Jul 2016 12:22:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id f6DVS-gULveS for ; Thu, 21 Jul 2016 12:22:28 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8D7FC60CD2 for ; Thu, 21 Jul 2016 12:22:27 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id w18so114651745oiw.3 for ; Thu, 21 Jul 2016 05:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3m66T81Vs9UjQhsJ33vBMH7A/bhMQO91MMSj9sx69Ig=; b=K0Aoa0hSMBh/1V8b7AMX49QZ9cfjtNEseH7bQmpk6XLY0d4pi4sfd5xUkutVf7N2AD KWbRr2OX47suw0y1W8SRXuP6OZFwgQQBYCQmdTePGFn0slqm/zHlR590PcGXBsS4LS4k dHRBeQus664CFL4NUYWvvT8Y/ouFhPTAvJbZY5Dcj8OYwWoopfhP6EtgWZXTyhj5Ufu4 1dWIR97k46abmRcoLhsoC7cNErGhwmspYO9ga29icwd2LRxs5KLYhoLvZ48VSQCAmat6 a7OtC44c5YKQ0kZyXoYRqDqEKUtvkiMx6T2ASSJxgLCPk/RTwntMPTqcCOPQ6JmNOiEh +Bmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3m66T81Vs9UjQhsJ33vBMH7A/bhMQO91MMSj9sx69Ig=; b=dQlX42ESIOYhAC0yzHtwWjyZsjALy2ID+yzySz6Z59kUBTNj84RJGMv1S3KkgBJIYf 2QRHbACnxIa7Si5njaDC+8Pl7EDur6JlooJ/B3PogQT3Oc+IR6YaNQMExZV26zJJG0NI c5gOOeHYWsVwT+ZikSzGioxpT91ZfomgVlv6N3TD1IoNUfxBxqC+I1iMMeDeGG1iYr+u czqxyDbCBeyb+OweZ7dIi7R9+Y6ycEbuyqUDPZBkzopJ1WTEwfxgQUUMX+V99eVzjtwQ felmPSQjhc6ZPQ8wmpm+BuRT7IhdPBuVY9z6dBAseYXlnzDuDjuadM3T8mtGQIrWuNZX ucfQ== X-Gm-Message-State: ALyK8tLyPU2u6MeGDPJjk1orE2LtxTsnZJJZjQTsc4silXrwREuSk+lmJ7b7bH3sS/uOpQ11oXPrzg/b0acLzg== X-Received: by 10.157.41.9 with SMTP id d9mr21717470otb.67.1469103746411; Thu, 21 Jul 2016 05:22:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.252.78 with HTTP; Thu, 21 Jul 2016 05:22:25 -0700 (PDT) In-Reply-To: References: From: Alvaro Gareppe Date: Thu, 21 Jul 2016 09:22:25 -0300 Message-ID: Subject: Re: PathChildrenCache creates the node if not present To: user@curator.apache.org Cc: cammckenzie@apache.org Content-Type: multipart/alternative; boundary=94eb2c03552ef171bc0538245e98 archived-at: Thu, 21 Jul 2016 12:22:31 -0000 --94eb2c03552ef171bc0538245e98 Content-Type: text/plain; charset=UTF-8 Do you know if there is a thread issue with the TreeCache? Cause after I call cache.close() the Curator-TreeCache-X thread is still alive. On Tue, Jul 19, 2016 at 1:33 PM, Alvaro Gareppe wrote: > I changed the PathChildrenCache to TreeCache depth=1 and worked OK. > > Thanks guys! > > On Fri, Jul 15, 2016 at 6:03 PM, Scott Blum wrote: > >> TreeCache is read-only unless you specifically ask it to create the root >> node. Use depth=1 to watch only a single node. >> >> On Thu, Jul 14, 2016 at 5:46 PM, Cameron McKenzie > > wrote: >> >>> I don't have the code handy, but have you tried TreeCache? >>> >>> On 14 Jul 2016 11:31 PM, "Alvaro Gareppe" wrote: >>> >>>> Is there a way to avoid the node creation on PathChildrenCache start() ? >>>> >>>> I have this case >>>> >>>> 1.- There is no node in ZK >>>> 2.- I do this: >>>> cp = new PathChildrenCache(conn, "/a", >>>> PathChildrenCache.CACHE_PATH_ONLY); >>>> cp.start() >>>> 3.- now I have a node /a in ZK >>>> >>>> Im using the pathCache in a different thread (and possibly different >>>> server) of the node creation, so I would like to have an option where the >>>> node is not created, so it does nothing or throws and exception in that >>>> case (both works for me). >>>> >>>> Is there some way to configure the PathChildrenCache to do so ? >>>> >>>> I'm using curator version: 2.9.1 >>>> >>>> -- >>>> Ing. Alvaro Gareppe >>>> agareppe@gmail.com >>>> >>> >> > > > -- > Ing. Alvaro Gareppe > agareppe@gmail.com > -- Ing. Alvaro Gareppe agareppe@gmail.com --94eb2c03552ef171bc0538245e98 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Do you know if there is a thread issue with the TreeCache?= Cause after I call cache.close() the Curator-TreeCache-X thread is still a= live.=C2=A0

= On Tue, Jul 19, 2016 at 1:33 PM, Alvaro Gareppe <agareppe@gmail.com&g= t; wrote:
I chang= ed the PathChildrenCache to TreeCache depth=3D1 and worked OK.

Thanks guys!

On Fri, Jul 15, 2016 = at 6:03 PM, Scott Blum <dragonsinth@gmail.com> wrote:
TreeCache is read-only unl= ess you specifically ask it to create the root node.=C2=A0 Use depth=3D1 to= watch only a single node.

On Thu, Jul 14, 2016 at 5:46 PM, Cameron McKenzie = <cammckenzie@apache.org> wrote:

I don't have the code handy, but have you tri= ed TreeCache?


On 14 Jul 2016 11= :31 PM, "Alvaro Gareppe" <agareppe@gmail.com> wrote:
Is there a way to avoid = the node creation on PathChildrenCache start() ?

I have = this case

1.- There is no node in ZK
2.-= I do this:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp =3D new PathChil= drenCache(conn, "/a", PathChildrenCache.CACHE_PATH_ONLY);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp.start()
3.- now I have a = node /a in ZK

Im using the pathCache in a differen= t thread (and possibly different server) of the node creation, so I would l= ike to have an option where the node is not created, so it does nothing or = throws and exception in that case (both works for me).

=
Is there some way to configure the PathChildrenCache to do so ?
<= div>
I'm using curator version: 2.9.1

=
--
Ing. Alvaro Gareppeagareppe@gmail.com=




--
=
Ing. Alvaro Gareppe
agareppe@gmail.com



--
=
Ing. Alva= ro Gareppe
agare= ppe@gmail.com
--94eb2c03552ef171bc0538245e98--