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

Improve the concurrent access on FsVolumeList

    XMLWordPrintableJSON

Details

    Description

      FsVolumeList uses synchronized to protect the update on FsVolumeList#volumes, while various operations (e.g., checkDirs(), getAvailable()) iterate volumes without protection.

      This JIRA proposes to use AtomicReference to encapture volumes to provide better concurrent access.

      Attachments

        1. HDFS-7531.002.patch
          20 kB
          Lei (Eddy) Xu
        2. HDFS-7531.001.patch
          20 kB
          Lei (Eddy) Xu
        3. HDFS-7531.000.patch
          19 kB
          Lei (Eddy) Xu

        Issue Links

          Activity

            People

              eddyxu Lei (Eddy) Xu
              eddyxu Lei (Eddy) Xu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: