Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-11805

Ensure LevelDB DBIterator is closed

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • HDFS-7240
    • None
    • None
    • Reviewed

    Description

      DBIterator used in CblockManager/FilteredKeys/SQLCLI/OzoneMetadataManager should be closed after done with the iteration to avoid resource leaking.

      try-with-resource should fix that easily for most of the cases. FIlteredKeys may be a special case that I have not fully checked yet.

      Attachments

        1. HDFS-11805-HDFS-7240.002.patch
          5 kB
          Chen Liang
        2. HDFS-11805-HDFS-7240.001.patch
          5 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: