[
https://issues.apache.org/jira/browse/HDFS-4736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE updated HDFS-4736:
-----------------------------------------
Component/s: (was: datanode)
(was: namenode)
hdfs-client
Priority: Minor (was: Major)
Fix Version/s: (was: Snapshot (HDFS-2802))
Summary: chmod does not return error exit codes for some exceptions
(was: SnapshotAccessControlException does not return valid exit codes)
> chmod does not return error exit codes for some exceptions
> ----------------------------------------------------------
>
> Key: HDFS-4736
> URL: https://issues.apache.org/jira/browse/HDFS-4736
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs-client
> Reporter: Ramya Sunil
> Assignee: Tsz Wo (Nicholas), SZE
> Priority: Minor
>
> When some dfs operations fail due to SnapshotAccessControlException, valid
> exit codes are not returned.
> E.g:
> -bash-4.1$ hadoop dfs -chmod -R 755
> /user/foo/hdfs-snapshots/test0/.snapshot/s0
> chmod: changing permissions of
> 'hdfs://<namenode>:8020/user/foo/hdfs-snapshots/test0/.snapshot/s0':org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotAccessControlException:
> Modification on read-only snapshot is disallowed
> -bash-4.1$ echo $?
> 0
> -bash-4.1$ hadoop dfs -chown -R hdfs:users
> /user/foo/hdfs-snapshots/test0/.snapshot/s0
> chown: changing ownership of
> 'hdfs://<namenode>:8020/user/foo/hdfs-snapshots/test0/.snapshot/s0':org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotAccessControlException:
> Modification on read-only snapshot is disallowed
> -bash-4.1$ echo $?
> 0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira