Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19979

ReplicationSyncUp tool may leak Zookeeper connection

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      ReplicationSyncUp tool may leak Zookeeper connection in the following code snippet,

          try {
            int numberOfOldSource = 1; // default wait once
            while (numberOfOldSource > 0) {
              Thread.sleep(SLEEP_TIME);
              numberOfOldSource = manager.getOldSources().size();
            }
          } catch (InterruptedException e) {
            System.err.println("didn't wait long enough:" + e);
            return (-1);
          }
      
          manager.join();
          zkw.close();
      

      ZooKeeperWatcher will not be closed in case of InterruptedException.

        Attachments

        1. HBASE-19979.patch
          0.9 kB
          Pankaj Kumar
        2. HBASE-19979-branch-1.001.patch
          0.9 kB
          Pankaj Kumar

          Activity

            People

            • Assignee:
              pankaj2461 Pankaj Kumar
              Reporter:
              pankaj2461 Pankaj Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: