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" <[email protected]>: > 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 <[email protected] > >> 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" <[email protected]>: >>> 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
