Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6500

Snapshot shouldn't be removed silently after renaming to an existing snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • snapshots
    • None
    • Reviewed

    Description

      Assume you have two snapshots for /dir: s1, s2, when you do "hdfs dfs
      -renameSnapshot /dir s2 s1" which means you want to rename s2 to s1. It will cause s2 been dropped silently and s1 still keep the previous one. This is very confusing and easily cause wrong operation.
      The right behavior should be providing a warning to remind user that the target name is already existed and do nothing. If user do want to overlap s1, he should add some option (i.e. "-f") or delete s1 first.

      Attachments

        1. h6500_20140607.patch
          2 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            junping_du Junping Du
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: