[
https://issues.apache.org/jira/browse/HDFS-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13617810#comment-13617810
]
Jing Zhao commented on HDFS-4647:
---------------------------------
Seems the problem of this error is that we fail to handle the scenario that the
src and the dst of the rename are in the same directory. In such a case, we do
not need to create reference nodes to link the nodes before/after the rename.
In general, when the rename happens, seems we do not need to create reference
node if there is no snapshottable directory under the lowest common ancestor of
src and dst.
> llegalStateException renaming file under snapshottable directory
> ----------------------------------------------------------------
>
> Key: HDFS-4647
> URL: https://issues.apache.org/jira/browse/HDFS-4647
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Affects Versions: Snapshot (HDFS-2802)
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Fix For: Snapshot (HDFS-2802)
>
>
> To repro:
> hadoop fs -mkdir /1
> hdfs dfsadmin -allowSnapsot /1
> hadoop fs -createSnapshot /1 snap1
> hadoop fs -put f1 /1
> Final command throws:
> put: java.lang.IllegalStateException
--
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