Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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

        Attachments

        1. HDFS-4735.001.patch
          12 kB
          Jing Zhao
        2. HDFS-4735.000.patch
          0.9 kB
          Jing Zhao

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: