Use a set to manage child sockets in XceiverServer
--------------------------------------------------

                 Key: HDFS-2568
                 URL: https://issues.apache.org/jira/browse/HDFS-2568
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: data-node
    Affects Versions: 0.24.0
            Reporter: Harsh J
            Priority: Trivial
             Fix For: 0.24.0


Found while reading up for HDFS-2454, currently we maintain childSockets in a 
DataXceiverServer as a Map<Socket,Socket>. This can very well be a Set<Socket> 
data structure -- since the goal is easy removals.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to