[ 
https://issues.apache.org/jira/browse/HDFS-11450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15881661#comment-15881661
 ] 

Mingliang Liu commented on HDFS-11450:
--------------------------------------

I see a few of code logic duplicate in between newly added 
{{DFSTopologyNodeImpl}} and {{InnerNodeImpl}}. It's ideal to share the code 
logic if possible. This is not a must-have though.

{{childrenStorageInfo}} is the core change here. Can it be Map type, and/or 
using ConcurrentHashMap implementation? Not sure about this.



> HDFS specific network topology classes with storage type info included
> ----------------------------------------------------------------------
>
>                 Key: HDFS-11450
>                 URL: https://issues.apache.org/jira/browse/HDFS-11450
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Chen Liang
>            Assignee: Chen Liang
>         Attachments: HDFS-11450.001.patch
>
>
> This JIRA adds storage type info into network topology.
> More specifically, this JIRA adds a storage type map by extending 
> {{InnerNodeImpl}} to describe the available storages under the current node's 
> subtree. This map is updated when a node is added/removed from the subtree.
> With this info, when choosing a random node with storage type requirement, 
> the search could then decide to/not to go deeper into a subtree by examining 
> the available storage types first.
> One to-do item still, is that, we might still need to separately handle the 
> cases where a Datanodes restarts, or a disk is hot-swapped, will file another 
> JIRA in that case.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to