zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andor Molnar <an...@apache.org>
Subject Re: Can I use czxid as unique sequence number?
Date Mon, 28 Oct 2019 16:52:46 GMT
Yes, I think you can do that.
zxid is currently an AtomicLong in the leader which we increment on every write request.

Andor


> On 2019. Oct 18., at 17:59, Vincent Ngan <ngan.vincent@gmail.com> wrote:
> 
> I want to determine the order of creation of a number of nodes without
> using ZooKeeper's sequence feature because I do not want the name of the
> nodes to be appended with a sequence number.
> 
> Regards,
> vngantk
> 
> On Thu, Oct 3, 2019 at 2:37 AM Enrico Olivelli <eolivelli@gmail.com> wrote:
> 
>> Can you give more details about your usecase?
>> 
>> Enrico
>> 
>> Il mer 2 ott 2019, 10:04 Vincent Ngan <ngan.vincent@gmail.com> ha scritto:
>> 
>>> Hi,
>>> 
>>> According to the definition of czxid as mentioned in the documentation,
>> can
>>> I assume that the czxid of every node is unique? If this is the case,
>> can I
>>> just use it for purpose of determining the unique sequence number of a
>>> node?
>>> 
>>> Regards,
>>> vngantk
>>> 
>> 


Mime
View raw message