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 32D05200C5C for ; Thu, 6 Apr 2017 03:07:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 31762160B9E; Thu, 6 Apr 2017 01:07:09 +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 6F599160B94 for ; Thu, 6 Apr 2017 03:07:08 +0200 (CEST) Received: (qmail 43659 invoked by uid 500); 6 Apr 2017 01:07:07 -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 43648 invoked by uid 99); 6 Apr 2017 01:07:07 -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; Thu, 06 Apr 2017 01:07:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 377ACDFDAC; Thu, 6 Apr 2017 01:07:07 +0000 (UTC) From: hanm To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #184: ZOOKEEPER-236: SSL Support for Atomic Broadcast... Content-Type: text/plain Message-Id: <20170406010707.377ACDFDAC@git1-us-west.apache.org> Date: Thu, 6 Apr 2017 01:07:07 +0000 (UTC) archived-at: Thu, 06 Apr 2017 01:07:09 -0000 Github user hanm commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/184#discussion_r110061068 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Learner.java --- @@ -253,7 +255,10 @@ protected void connectToLeader(InetSocketAddress addr) throw new IOException("initLimit exceeded on retries."); } - sockConnect(sock, addr, Math.min(self.tickTime * self.syncLimit, remainingInitLimitTime)); + sockConnect(sock, leader.addr, Math.min(self.tickTime * self.syncLimit, remainingInitLimitTime)); --- End diff -- leader could be null in leader.addr right? Still wondering why change the leader type from an address to a QuorumServer. --- 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. ---