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

Race condition between DistributedFileSystem#close and FileSystem#close can cause return of a closed DistributedFileSystem instance from the FileSystem cache.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1-win, 1.3.0
    • hdfs-client
    • None
    • Reviewed

    Description

      DistributedFileSystem#close closes the underlying DFSClient before the superclass call to FileSystem#close, which removes the instance from the cache. This leaves a small window during which another thread can call FileSystem#get and receive the closed instance from the cache.

      Attachments

        1. HDFS-5211.1.patch
          0.5 kB
          Chris Nauroth
        2. HDFS-5211.2.patch
          0.6 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: