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

Filesystems to be closed if they failed during initialize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1, 3.1.3
    • 3.3.0
    • fs, fs/s3
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: