[ https://issues.apache.org/jira/browse/HDFS-5242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13851206#comment-13851206 ]
Daryn Sharp commented on HDFS-5242: ----------------------------------- An atomic reference would be fine but I'm not sure it adds value. The setter is called when adding the node to the network topology - after which, it is never changed. Another thread can't get the instance w/o going through the topology, and the instance isn't in the topology until after the network location is set. > Reduce contention on DatanodeInfo instances > ------------------------------------------- > > Key: HDFS-5242 > URL: https://issues.apache.org/jira/browse/HDFS-5242 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: namenode > Affects Versions: 2.0.0-alpha, 3.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-5242.patch > > > Synchronization in {{DatanodeInfo}} instances causes unnecessary contention > between call handlers. -- This message was sent by Atlassian JIRA (v6.1.4#6159)