Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16031

Possible Resource Leak in org.apache.hadoop.hdfs.server.aliasmap#InMemoryAliasMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0, 3.3.2
    • None
    • Reviewed

    Description

      We notice a possible resource leak in getCompressedAliasMap. If finish() at line 334 throws an IOException, then tOut, gzOut and bOut remain open since the exception isn't caught locally, and there is no way for any caller to close them.
      I've submitted a pull request to fix it.

       

      Attachments

        Issue Links

          Activity

            People

              NargesShadab Narges Shadab
              NargesShadab Narges Shadab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m