hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrique Barros (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5970) callers of NetworkTopology's chooseRandom method to expect null return value
Date Fri, 17 Aug 2018 17:36:00 GMT

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

Henrique Barros commented on HDFS-5970:
---------------------------------------

I just reproduced it returning null.
See the issue I created please:

https://issues.apache.org/jira/browse/HDFS-13833

> 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-alpha1
>            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
(v7.6.3#76005)

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


Mime
View raw message