Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
After a long running stress test for snapshots, disallow snapshot throws IllegalStateException
-bash-4.1$ hadoop dfs -rmr -skipTrash /user/foo/hdfs-snapshots
rmr: cannot remove /user/foo/hdfs-snapshots: No such file or directory.
-bash-4.1$ /usr/lib/hadoop/bin/hadoop dfs -mkdir /user/foo/hdfs-snapshots/test2
-bash-4.1$ /usr/lib/hadoop/bin/hadoop dfsadmin -allowSnapshot /user/foo/hdfs-snapshots/test2
Allowing snaphot on /user/foo/hdfs-snapshots/test2 succeeded
-bash-4.1$ /usr/lib/hadoop/bin/hadoop dfsadmin -disallowSnapshot /user/foo/hdfs-snapshots/test2
disallowSnapshot: java.io.IOException: java.lang.IllegalStateException: this is already an INodeDirectoryWithSnapshot, this=test2