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

Junping Du commented on HDFS-5970:
----------------------------------

The plan sounds reasonable. I agree NPE happens here is still "theoretically", 
so we can come back to this when real case happen. Move its priority to "Minor" 
but leave it open until we seriously check it won't happen. 

> callers of NetworkTopology's chooseRandom method to expect null return value
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-5970
>                 URL: https://issues.apache.org/jira/browse/HDFS-5970
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.0.0
>            Reporter: Yongjun Zhang
>            Priority: Minor
>
> Class NetworkTopology's method
>    public Node chooseRandom(String scope) 
> calls 
>    private Node chooseRandom(String scope, String excludedScope)
> which may return null value.
> Callers of this method such as BlockPlacementPolicyDefault etc need to be 
> aware that.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to