Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BE469200D66 for ; Fri, 15 Dec 2017 02:26:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BCA74160C25; Fri, 15 Dec 2017 01:26:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 04897160C16 for ; Fri, 15 Dec 2017 02:26:13 +0100 (CET) Received: (qmail 72874 invoked by uid 500); 15 Dec 2017 01:26:12 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 72862 invoked by uid 99); 15 Dec 2017 01:26:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2017 01:26:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 61DAEDFF75; Fri, 15 Dec 2017 01:26:12 +0000 (UTC) From: asdf2014 To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper issue #262: ZOOKEEPER-2789: Reassign `ZXID` for solving 32bit over... Content-Type: text/plain Message-Id: <20171215012612.61DAEDFF75@git1-us-west.apache.org> Date: Fri, 15 Dec 2017 01:26:12 +0000 (UTC) archived-at: Fri, 15 Dec 2017 01:26:14 -0000 Github user asdf2014 commented on the issue: https://github.com/apache/zookeeper/pull/262 Hi, @breed . Thanks for your comment. You are right, we should keep the enough epoch value to avoid meet the epoch overflow. So i offer a better solution is 24-bit epoch in second comment. Even if the frequency of leader election is once by every single minutes, we will not experience the epoch overflow until **1915.2** years later. ![image](https://user-images.githubusercontent.com/8108788/34022152-9f04832c-e178-11e7-9bf3-c1b047613dae.png) ---