zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleksandr Pryimak <tramsmm-mir...@yandex.ru>
Subject Re: Node Exists error code trying to create a seq znode
Date Tue, 17 Jul 2012 09:54:03 GMT
As far as I see it creates FOO0000000050. This changes children version to 51.
So, anyway, it is not a good idea to store anything but sequential znodes in /some_folder

16.07.2012, 22:19, "David Nickerson" <davidnickerson4mailinglists@gmail.com>:
> What happens if /some_folder contains FOO0000000051 and doesn't
> contain  FOO0000000050
> when you try to create a sequential znode with version 50?
>
> On Mon, Jul 16, 2012 at 1:13 PM, Oleksandr Pryimak <tramsmm-mirror@yandex.ru
>
>>  wrote:
>>  Actually, it is FOO(children_version)
>>
>>  So if you have a znode "/some_folder" which contains FOO0000000050 and its
>>  children version is 50 then it is impossible to create a sequential znode
>>  with prefix FOO as a child of "/some_folder" znode.
>>
>>  16.07.2012, 21:07, "Oleksandr Pryimak" <tramsmm-mirror@yandex.ru>:
>>>  Good day, everyone.
>>>
>>>  I discovered that it is impossible to create a sequential node with
>>  specified prefix FOO if there is a node FOO(children_version + 1). Error
>>  code says that 'node exists'.
>>>  I think it never happens in typical use case. But it looks like a bug.
>>>
>>>  Zookeeper version: 3.3.3--1, built on 08/21/2011 17:26 GMT
>>>
>>>  --
>>>  Aleksandr Pryimak
>>  --
>>  Oleksandr Pryimak

--
Oleksandr Pryimak

Mime
View raw message