[
https://issues.apache.org/jira/browse/HDFS-16567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533236#comment-17533236
]
Congyong Ruan commented on HDFS-16567:
--------------------------------------
[[email protected]] And finally decide how to solve it?
> 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: Congyong Ruan
> 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]