zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Han <h...@cloudera.com>
Subject Re: ZooKeeper Time Synchronization
Date Fri, 21 Jul 2017 20:53:15 GMT
mtime etc is exposed to user to provide basic stats info; ZK itself does
not use these times. These times will just be recorded as they are and
carried over and does not impact anything in case leader election etc
happens.

On Fri, Jul 21, 2017 at 11:30 AM, Amr <amr.alanwar@gmail.com> wrote:

> Hi Abe,
>
> Thanks a lot for your reply and for the reference. Excuse me, I have a
> comment and a request for clarification.
>
>  I see in the link you provided
>
> "ZooKeeper doesn't use real time, or clock time, at all except to put
> timestamps into the stat structure on znode creation and znode
> modification."
>
> Also, I see that znode state structure has the following
> mtime: The time in milliseconds from epoch when this znode was last
> modified.
>
> what is the usage of this mtime?
>
> Consider Znode z1, I was thinking in this senario:
> 1- Master kept mtime T1 for changing z1.
> 2- Master died.
> 3- A new master will be elected, how will the new master deal with the
> timestamps attached to the znodes? The new master has no sense of the
> mtimes
> values attached to the znode. Does that affect anything, if for example a
> new modification is proposed?
>
> Thanks again!
>
>
>
>
> --
> View this message in context: http://zookeeper-user.578899.n
> 2.nabble.com/ZooKeeper-Time-Synchronization-tp7583217p7583222.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
>



-- 
Cheers
Michael.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message