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

Improve the concurrent access on FsVolumeList

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.000.patch
          19 kB
          Lei (Eddy) Xu
        2. HDFS-7531.001.patch
          20 kB
          Lei (Eddy) Xu
        3. HDFS-7531.002.patch
          20 kB
          Lei (Eddy) Xu

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Issue deployment