Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D10C31133C for ; Mon, 21 Apr 2014 21:10:47 +0000 (UTC) Received: (qmail 78333 invoked by uid 500); 21 Apr 2014 21:10:46 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 78294 invoked by uid 500); 21 Apr 2014 21:10:46 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 78286 invoked by uid 99); 21 Apr 2014 21:10:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 21:10:45 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of rgs@itevenworks.net does not designate 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-ig0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 21:10:41 +0000 Received: by mail-ig0-f180.google.com with SMTP id c1so2236336igq.1 for ; Mon, 21 Apr 2014 14:10:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fV7pwiLab5aUGe15i/RTqOkTzje0y1KpUIXQ9lqWDss=; b=fDK9CH1ehqJZu205MzMt24oWL+9tTx81eTr4yhqDSTewS5iKGpwC2ndJtZmwB+bTwv /DMRRuIqlfum7mQ1RPWJxD2jszMnr44KoqYHzm5sUTx42+QFI8owZJfu+DL3oXMQ6TPI /oD/C4SYQbV0mUrFaahkoPd46dNNHQACiO5iRyP4LcEMJnw7mHHE8Gq3B9K8B+VM1sIr 5gz2e1kN/1TQ3AALiqwRy8HSxOUPQKsz285bqdF5iUcRiE/09ztHHx7LOAPwGCVfzf8e E04bsnOReG3Jkbcw1DLyPbJJOVPHu2aynzV4ipQ0D/TMvEbLPi2pe0CMOGQvVNtfbOJp Huxw== X-Gm-Message-State: ALoCoQmtywpFCT/DFzqHaiP0tRg0Ub7juIcHsUXxbgo6pwt7+RKcheiNyazC3Yb4ssXkBjXxOv3V MIME-Version: 1.0 X-Received: by 10.50.112.202 with SMTP id is10mr24802358igb.7.1398114615553; Mon, 21 Apr 2014 14:10:15 -0700 (PDT) Received: by 10.64.225.114 with HTTP; Mon, 21 Apr 2014 14:10:15 -0700 (PDT) X-Originating-IP: [8.25.197.27] In-Reply-To: References: Date: Mon, 21 Apr 2014 14:10:15 -0700 Message-ID: Subject: Re: System clocks From: =?ISO-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?= To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7b3398c90402a804f793ed31 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3398c90402a804f793ed31 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21 April 2014 14:02, Ra=FAl Guti=E9rrez Segal=E9s = 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/zoo= keeper/server/ZooKeeperServer.java#L302 which is a call to System.currentTimeMillis, which is ms since the unix epoch. So it is timezone independent. -rgs --047d7b3398c90402a804f793ed31--