[ https://issues.apache.org/jira/browse/HDFS-4666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631448#comment-13631448 ]
Aaron T. Myers commented on HDFS-4666: -------------------------------------- bq. For upgrading, we may throw an exception if .snapshot is used in a previous image/edit and ask use to rename it. By this do you mean that the user would have to roll back their software to the previous version, start it up, do the rename, and then re-upgrade the software version? That seems like a bit of a pain. Two alternative suggestions: # On the loading of an fsimage or edits, automatically rename any files/directories encountered named ".snapshot" to something like ".snapshot.RENAMED". # When a directory is marked as being snapshottable, check only then that that directory does not currently contain a file/directory named ".snapshot". Thoughts? > Disallow users to create file/dir named ".snapshot" > --------------------------------------------------- > > Key: HDFS-4666 > URL: https://issues.apache.org/jira/browse/HDFS-4666 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode, namenode > Reporter: Jing Zhao > Assignee: Tsz Wo (Nicholas), SZE > Attachments: h4666_20130413b.patch, h4666_20130413.patch > > > Currently ".snapshot" is reserved by snapshots as a special tag to specify > the path leading to snapshot copies. We should disallow users to create > file/dir using name ".snapshot". -- 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