[jira] [Updated] (HDFS-13261) Fix incorrect null value check

2018-03-14 Thread Yiqun Lin (JIRA)

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

Yiqun Lin updated HDFS-13261:
-
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 3.2.0
   2.10.0
   3.1.0
   Status: Resolved  (was: Patch Available)

Committed to trunk, branch-3.1 and branch-2.

Thanks [~jiangjianfei] for the contrition and thanks [~xyao] for the review.

> Fix 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
> Fix For: 3.1.0, 2.10.0, 3.2.0
>
> 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



[jira] [Updated] (HDFS-13261) Fix incorrect null value check

2018-03-14 Thread Yiqun Lin (JIRA)

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

Yiqun Lin updated HDFS-13261:
-
Summary: Fix incorrect null value check  (was: Incorrect null value check)

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