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

Steve Loughran commented on HDFS-16567:
---------------------------------------

looks like the filesystems all assume it's not null, and there are no @Nullable 
tags on the parameters in the java apis. NullPointerExceptions are going to 
happen in any of the stores which implement the api

 is this a bug or simply part of the documentation to improve?

> A NullPointerException occurs when calling setPermission and permission is 
> null 
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-16567
>                 URL: https://issues.apache.org/jira/browse/HDFS-16567
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: ruancongyong
>            Priority: Minor
>             Fix For: 3.3.2
>
>
> when calling setPermission and permission parameter is null, a  
> NullPointerException will occurs. According to the [official 
> manual,|https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html]
>  the method doesn't say that the parameter is not empty. when without the 
> permission parameter  the mode of new directory is {{P & ^umask & 0777 and 
> the mode of the new file is }}{{P & ^umask & 0666}}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to