[ 
https://issues.apache.org/jira/browse/HDFS-4802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo (Nicholas), SZE resolved HDFS-4802.
------------------------------------------

    Resolution: Fixed

I have committed this.  Thanks, Jing!
                
> Disallowing snapshot on / twice throws error
> --------------------------------------------
>
>                 Key: HDFS-4802
>                 URL: https://issues.apache.org/jira/browse/HDFS-4802
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Ramya Sunil
>            Assignee: Jing Zhao
>            Priority: Minor
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: HDFS-4802.001.patch, HDFS-4802.002.patch, 
> HDFS-4802.003.patch
>
>
> $ 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:
> {noformat}
> 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)
> {noformat}

--
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

Reply via email to