accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2210) socket should be closed in MiniAccumuloClusterImpl#start()
Date Tue, 28 Jan 2014 23:03:35 GMT

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

Mime
View raw message