You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/01/29 00:03:35 UTC

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

    [ https://issues.apache.org/jira/browse/ACCUMULO-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884834#comment-13884834 ] 

ASF subversion and git services commented on ACCUMULO-2210:
-----------------------------------------------------------

Commit 21f09f42a32059befd715f904047971daecd2c47 in branch refs/heads/master from [~vines]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=21f09f4 ]

ACCUMULO-2210 Closing socket after checking on on Zookeeper


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