You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/01/16 23:35:20 UTC

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

Ted Yu created ACCUMULO-2210:
--------------------------------

             Summary: 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
            Priority: Minor


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)