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

Remove Synchronization From BlockPlacementPolicyDefault

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • None
    • block placement
    • None
    • Patch

    Description

      https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java#L1010

      The clusterMap has its own internal synchronization. Also, these are only read operations so any changes applied to the clusterMap from another thread will be applied since no other thread synchronizes on the clusterMap itself (that I could find).

      Attachments

        1. HDFS-14863.1.patch
          2 kB
          David Mollitor
        2. HDFS-14863.2.patch
          2 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: