[
https://issues.apache.org/jira/browse/HDFS-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639671#comment-13639671
]
Ramya Sunil commented on HDFS-4735:
-----------------------------------
Logs from the namenode:
{noformat}
INFO org.apache.hadoop.ipc.Server: IPC Server handler 31 on 8020, call
disallowSnapshot(/user/foo/hdfs-snapshots/test2) from .*: error:
java.io.IOException: java.lang.IllegalStateException: this is already an
INodeDirectoryWithSnapshot, this=test2
java.io.IOException: java.lang.IllegalStateException: this is already an
INodeDirectoryWithSnapshot, this=test2
at
org.apache.hadoop.hdfs.server.namenode.INodeDirectory.replaceSelf4INodeDirectoryWithSnapshot(INodeDirectory.java:201)
at
org.apache.hadoop.hdfs.server.namenode.snapshot.INodeDirectorySnapshottable.replaceSelf(INodeDirectorySnapshottable.java:447)
at
org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager.resetSnapshottable(SnapshotManager.java:108)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.disallowSnapshot(FSNamesystem.java:6773)
at
org.apache.hadoop.hdfs.server.namenode.NameNode.disallowSnapshot(NameNode.java:1545)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:578)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1405)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1401)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1195)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1399)
{noformat}
> DisallowSnapshot throws IllegalStateException
> ---------------------------------------------
>
> Key: HDFS-4735
> URL: https://issues.apache.org/jira/browse/HDFS-4735
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Ramya Sunil
> Fix For: Snapshot (HDFS-2802)
>
>
> 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
--
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