Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16665

Filesystems to be closed if they failed during initialize()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.1.3
    • Fix Version/s: 3.3.0
    • Component/s: fs, fs/s3
    • Labels:
      None

      Description

      We seen this with S3A but it is likely to apply to the other file systems too:

      If the file system raises an exception during initialize() then it is not close()'d. Any resources threads etc created during initialisation may be leaked.

      I'm going to fix S3A to clean up internally, but the FileSystem get() and newInstance() methods should also catch and close if an IOE or RTE is raised.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: