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 0333B200C2D for ; Fri, 17 Feb 2017 22:05:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 020C8160B46; Fri, 17 Feb 2017 21:05:05 +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 7381F160B57 for ; Fri, 17 Feb 2017 22:05:04 +0100 (CET) Received: (qmail 79012 invoked by uid 500); 17 Feb 2017 21:05:03 -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 78542 invoked by uid 99); 17 Feb 2017 21:05:03 -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, 17 Feb 2017 21:05:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D3E38DFF40; Fri, 17 Feb 2017 21:05:02 +0000 (UTC) From: eribeiro To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #173: ZOOKEEPER-2691: recreateSocketAddresses may rec... Content-Type: text/plain Message-Id: <20170217210502.D3E38DFF40@git1-us-west.apache.org> Date: Fri, 17 Feb 2017 21:05:02 +0000 (UTC) archived-at: Fri, 17 Feb 2017 21:05:05 -0000 Github user eribeiro commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/173#discussion_r101843855 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java --- @@ -113,13 +113,21 @@ private QuorumServer(long id, InetSocketAddress addr, this.id = id; this.addr = addr; this.electionAddr = electionAddr; + String checkIPReachableValue = System.getProperty("zookeeper.checkIPTimeout"); + if(checkIPReachableValue != null){ + this.checkIPReachableTO = Integer.parseInt(checkIPReachableValue); + } } // VisibleForTesting public QuorumServer(long id, InetSocketAddress addr) { this.id = id; this.addr = addr; this.electionAddr = null; + String checkIPReachableValue = System.getProperty("zookeeper.checkIPTimeout"); + if(checkIPReachableValue != null){ --- End diff -- nit: space between if and ( --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---