zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raúl Gutiérrez Segalés <...@itevenworks.net>
Subject Re: System clocks
Date Mon, 21 Apr 2014 21:10:15 GMT
On 21 April 2014 14:02, Raúl Gutiérrez Segalés <rgs@itevenworks.net> wrote:
>
> But your transactions would have different timestamps as the leader
changes timezone from one election to the next, no? Or are they all UTC?

So it seems that the timestamp for TxnHeaders comes from:

https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/server/ZooKeeperServer.java#L302

which is a call to System.currentTimeMillis, which is ms since the unix
epoch. So it is timezone independent.


-rgs

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