[ 
https://issues.apache.org/jira/browse/HDFS-13261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jianfei Jiang updated HDFS-13261:
---------------------------------
    Attachment: HDFS-13261.002-branch-2.patch

> Incorrect null value check
> --------------------------
>
>                 Key: HDFS-13261
>                 URL: https://issues.apache.org/jira/browse/HDFS-13261
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 2.8.3, 3.0.0
>            Reporter: Jianfei Jiang
>            Assignee: Jianfei Jiang
>            Priority: Minor
>         Attachments: HDFS-13261.001.patch, HDFS-13261.002-branch-2.patch, 
> HDFS-13261.002.patch
>
>
>  
> {code:java}
> public void setZoneName(final String name) {
>   Preconditions.checkNotNull(name == null)-------error parameter for 
> checkNotNull
>   zoneName = name;
> }
> {code}
> Like above, in 3.x, the checkNotNull function gets wrong parameter in two 
> cases: \{{ZoneReencryptionStatus#setZoneName}} and 
> \{{AdminHelper#HelpCommand#HelpCommand}}
> In 2.x, the error occurs once in \{{AdminHelper#HelpCommand#HelpCommand}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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