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

DisallowSnapshot throws IllegalStateException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • 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.000.patch
          0.9 kB
          Jing Zhao
        2. HDFS-4735.001.patch
          12 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: