Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4802

Disallowing snapshot on / twice throws error

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • 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)
      

      Attachments

        1. HDFS-4802.003.patch
          5 kB
          Jing Zhao
        2. HDFS-4802.002.patch
          4 kB
          Jing Zhao
        3. HDFS-4802.001.patch
          2 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            rramya Ramya Sunil
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: