[
https://issues.apache.org/jira/browse/HDFS-5111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744636#comment-13744636
]
Arpit Agarwal commented on HDFS-5111:
-------------------------------------
+1 for the patch.
I verified this fixes the double error message.
> Correctly handling incorrect input for snapshot commands
> --------------------------------------------------------
>
> Key: HDFS-5111
> URL: https://issues.apache.org/jira/browse/HDFS-5111
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: snapshots
> Affects Versions: 3.0.0
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Priority: Minor
> Attachments: HDFS-5111.001.patch, HDFS-5111.002.patch
>
>
> The FSShell commands CreateSnapshot/DeleteSnapshot/RenameSnapshot currently
> may output duplicated error msg. E.g., when trying to create snapshot on a
> file, we have the following error msg:
> {noformat}
> createSnapshot: `/newFile': Is not a directory
> createSnapshot: `/newFile': Is not a directory
> {noformat}
--
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