Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Consistency of ctime of znodes?

Martin Kou 2012-04-18, 02:45
Copy link to this message
Re: Consistency of ctime of znodes?
Hi Martin,

The leader calls System.currentTimeMillis() and use that value as the
mtime of znode. So if the leader changes and the new leader's time is
set differently, mtime can go down.


On Tue, Apr 17, 2012 at 7:45 PM, Martin Kou <[EMAIL PROTECTED]> wrote:
> Hi folks,
> There're a couple of timestamp values attached to znodes - are there any
> guarantees about the consistency of those timestamps? e.g. if a set
> operation have changed a znode's version from 2 to 3... is it guaranteed
> that the mtime of the znode can only increase?
> Best Regards,
> Martin Kou
Hartmut Lang 2012-04-18, 06:53