Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A9DD10DA0 for ; Tue, 28 Jan 2014 23:01:41 +0000 (UTC) Received: (qmail 95505 invoked by uid 500); 28 Jan 2014 23:01:38 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 95316 invoked by uid 500); 28 Jan 2014 23:01:36 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 95168 invoked by uid 99); 28 Jan 2014 23:01:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 23:01:34 +0000 Date: Tue, 28 Jan 2014 23:01:34 +0000 (UTC) From: "John Vines (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (ACCUMULO-2210) socket should be closed in MiniAccumuloClusterImpl#start() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Vines reassigned ACCUMULO-2210: ------------------------------------ Assignee: John Vines > socket should be closed in MiniAccumuloClusterImpl#start() > ---------------------------------------------------------- > > Key: ACCUMULO-2210 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2210 > Project: Accumulo > Issue Type: Bug > Reporter: Ted Yu > Assignee: John Vines > Priority: Minor > Fix For: 1.6.0 > > > Here is related code: > {code} > while (true) { > try { > Socket s = new Socket("localhost", config.getZooKeeperPort()); > s.getOutputStream().write("ruok\n".getBytes()); > s.getOutputStream().flush(); > byte buffer[] = new byte[100]; > int n = s.getInputStream().read(buffer); > if (n == 4 && new String(buffer, 0, n).equals("imok")) > break; > {code} > Socket s should be closed coming out of the loop. -- This message was sent by Atlassian JIRA (v6.1.5#6160)