[
https://issues.apache.org/jira/browse/HDFS-5102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13742899#comment-13742899
]
Hudson commented on HDFS-5102:
------------------------------
SUCCESS: Integrated in Hadoop-Yarn-trunk #304 (See
[https://builds.apache.org/job/Hadoop-Yarn-trunk/304/])
HDFS-5102. Snapshot names should not be allowed to contain slash characters.
Contributed by Jing Zhao. (jing9:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1514797)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
*
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
*
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshot.java
*
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotRename.java
> Snapshot names should not be allowed to contain slash characters
> ----------------------------------------------------------------
>
> Key: HDFS-5102
> URL: https://issues.apache.org/jira/browse/HDFS-5102
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: snapshots
> Affects Versions: 2.1.0-beta
> Reporter: Aaron T. Myers
> Assignee: Jing Zhao
> Fix For: 2.1.1-beta
>
> Attachments: HDFS-5102.001.patch
>
>
> Snapshots of a snapshottable directory are allowed to have arbitrary names.
> Presently, if you create a snapshot with a snapshot name that begins with a
> "/" character, this will be allowed, but later attempts to access this
> snapshot will fail because of the way the {{Path}} class deals with
> consecutive "/" characters. I suggest we disallow "/" from appearing in
> snapshot names.
> An example of this is in the first comment on this JIRA.
--
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