You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "John Vines (JIRA)" <ji...@apache.org> on 2014/01/29 00:04:49 UTC

[jira] [Resolved] (ACCUMULO-2210) socket should be closed in MiniAccumuloClusterImpl#start()

     [ https://issues.apache.org/jira/browse/ACCUMULO-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Vines resolved ACCUMULO-2210.
----------------------------------

    Resolution: Fixed

> 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)