You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2019/09/20 16:45:00 UTC

[jira] [Created] (HDFS-14863) Remove Synchronization From BlockPlacementPolicyDefault

David Mollitor created HDFS-14863:
-------------------------------------

             Summary: Remove Synchronization From BlockPlacementPolicyDefault
                 Key: HDFS-14863
                 URL: https://issues.apache.org/jira/browse/HDFS-14863
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: block placement
    Affects Versions: 3.2.0
            Reporter: David Mollitor
            Assignee: David Mollitor


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).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org