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 17004200C89 for ; Sat, 20 May 2017 04:55:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1579E160BD2; Sat, 20 May 2017 02:55:52 +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 52751160BD1 for ; Sat, 20 May 2017 04:55:51 +0200 (CEST) Received: (qmail 89316 invoked by uid 500); 20 May 2017 02:55:45 -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 89302 invoked by uid 99); 20 May 2017 02:55:45 -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; Sat, 20 May 2017 02:55:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0C32EDFC8B; Sat, 20 May 2017 02:55:45 +0000 (UTC) From: asdf2014 To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #257: ZOOKEEPER-2784: Add same `sid` config problem c... Content-Type: text/plain Message-Id: <20170520025545.0C32EDFC8B@git1-us-west.apache.org> Date: Sat, 20 May 2017 02:55:45 +0000 (UTC) archived-at: Sat, 20 May 2017 02:55:52 -0000 Github user asdf2014 commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/257#discussion_r117600411 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java --- @@ -677,6 +686,7 @@ public void run() { LOG.debug("Error closing server socket", ie); } } + if (ce !=null) throw new RuntimeException(ce); --- End diff -- Thx a lot! I will using `finally` deal with closing `socket`. --- 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. ---