You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Oleksandr Pryimak <tr...@yandex.ru> on 2012/07/16 19:07:57 UTC

Node Exists error code trying to create a seq znode

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

Re: Node Exists error code trying to create a seq znode

Posted by Oleksandr Pryimak <tr...@yandex.ru>.
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" <da...@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" <tr...@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

Re: Node Exists error code trying to create a seq znode

Posted by David Nickerson <da...@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" <tr...@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
>

Re: Node Exists error code trying to create a seq znode

Posted by Oleksandr Pryimak <tr...@yandex.ru>.
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" <tr...@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