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

Íñigo Goiri commented on HDFS-14913:
------------------------------------

The double ternary is tricky.
Let's create a function and go in detail with the process.

> Correct the value of available count in 
> DFSNetworkTopology#chooseRandomWithStorageType() 
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-14913
>                 URL: https://issues.apache.org/jira/browse/HDFS-14913
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>         Attachments: HDFS-14913-01.patch
>
>
> Presently if excluded scope is /default/rack1 and excluded node is 
> /default/rack10/node. Then the available count is not deducted.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to