Accumulo
  1. Accumulo
  2. ACCUMULO-2210

socket should be closed in MiniAccumuloClusterImpl#start()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Here is related 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;
      

      Socket s should be closed coming out of the loop.

        Activity

        Hide
        ASF subversion and git services added a comment -

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

        ACCUMULO-2210 Closing socket after checking on on Zookeeper

        Show
        ASF subversion and git services added a comment - Commit 21f09f42a32059befd715f904047971daecd2c47 in branch refs/heads/master from John Vines [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=21f09f4 ] ACCUMULO-2210 Closing socket after checking on on Zookeeper

          People

          • Assignee:
            John Vines
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development