curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Gareppe <agare...@gmail.com>
Subject Re: PathChildrenCache creates the node if not present
Date Thu, 21 Jul 2016 13:26:25 GMT
I just did the upgrate to the version 2.11 and the issue is still there. I
still see the Curator-TreeCache-X after the TreeCache is closed.
Any ideas ?

On Thu, Jul 21, 2016 at 9:22 AM, Alvaro Gareppe <agareppe@gmail.com> wrote:

> 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 <agareppe@gmail.com>
> 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 <dragonsinth@gmail.com>
>> 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 <
>>> cammckenzie@apache.org> wrote:
>>>
>>>> I don't have the code handy, but have you tried 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:
>>>>>          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
>



-- 
Ing. Alvaro Gareppe
agareppe@gmail.com

Mime
View raw message