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

Fix resource leak in HBaseFsck

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0, 1.1.1, 2.0.0
    • None
    • None
    • Reviewed

    Description

      In HBaseFsck#unassignMetaReplica() , ZooKeeperWatcher is not closed upon return from the method:

           ZKUtil.deleteNode(zkw, zkw.getZNodeForReplica(hi.metaEntry.getReplicaId()));
      

      This leads to resource leak.

      Attachments

        1. 13797-v1.txt
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: