Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
$ hadoop dfsadmin -allowSnapshot
/Allowing snaphot on / succeeded
$ hadoop dfsadmin -disallowSnapshot /
Disallowing snaphot on / succeeded
$ hadoop dfsadmin -disallowSnapshot /
disallowSnapshot: java.io.IOException: java.lang.IllegalStateException: Error when removing a snapshottable dir: removed != to-be-removed
From the logs:
INFO org.apache.hadoop.ipc.Server: IPC Server handler 34 on 8020, call disallowSnapshot(/) from * error: java.io.IOException: java.lang.IllegalStateException: Error when removing a snapshottable dir: removed != to-be-removed java.io.IOException: java.lang.IllegalStateException: Error when removing a snapshottable dir: removed != to-be-removed at org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager.removeSnapshottable(SnapshotManager.java:126) at org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager.resetSnapshottable(SnapshotManager.java:159) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.disallowSnapshot(FSNamesystem.java:6779) 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:587) 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:1232) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1399)