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

Add FileSystem#closeIfNotReferred method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • fs
    • None

    Description

      FileSystem#close closes FileSystem even if the same instance of FileSystem is referred by someone.

      For instance, a library using FileSystem calls FileSystem.get, and a program using the library calls FileSystem.get, both of instances of FileSystem is same.

      When the library and the program is implemented as different threads and one calls FileSystem.close, another fails most of operations of FileSystem.

      So, we need the method like cloesIfNotReferred, which closes FileSystem only if a instance of FileSystem is not referred by anyone.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sarutak Kousuke Saruta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: