Re: Can I use czxid as unique sequence number?
Can you give more details about your usecase? Enrico Il mer 2 ott 2019, 10:04 Vincent Ngan 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 >
Re: Can I use czxid as unique sequence number?
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 wrote: > Can you give more details about your usecase? > > Enrico > > Il mer 2 ott 2019, 10:04 Vincent Ngan 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 > > >
Re: Can I use czxid as unique sequence number?
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 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 wrote: > >> Can you give more details about your usecase? >> >> Enrico >> >> Il mer 2 ott 2019, 10:04 Vincent Ngan 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 >>> >>
Re: Can I use czxid as unique sequence number?
Hi, Thanks a lot! Regards, vngantk On Tue, Oct 29, 2019 at 12:52 AM Andor Molnar wrote: > 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 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 > wrote: > > > >> Can you give more details about your usecase? > >> > >> Enrico > >> > >> Il mer 2 ott 2019, 10:04 Vincent Ngan 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 > >>> > >> > >