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

Provide feedback on successful renameSnapshot and deleteSnapshot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0, 3.1.2
    • 3.3.0
    • hdfs, shell
    • None

    Description

      Shell (Before)
      # createSnapshot has feedback
      $ hdfs dfs -createSnapshot /dst/ snap1
      Created snapshot /dst/.snapshot/snap1
      
      # renameSnapshot doesn't have feedback if it succeeded
      $ hdfs dfs -renameSnapshot snap1 snap2 /dst/
      (No output)
      
      # deleteSnapshot doesn't have feedback if it succeeded
      $ hdfs dfs -deleteSnapshot /dst/ snap2
      (No output)
      
      # rm has feedback
      $ hdfs dfs -rm -skipTrash /dst/2.txt
      Deleted /dst/2.txt
      
      Shell (After)
      ...
      $ hdfs dfs -renameSnapshot snap1 snap2 /dst/
      Renamed snapshot snap1 to snap2 under hdfs://server:port/dst
      
      $ hdfs dfs -deleteSnapshot /dst/ snap2
      Deleted snapshot snap2 under hdfs://server:port/dst
      

      Attachments

        1. HDFS-14241.001.patch
          0.8 kB
          Siyao Meng
        2. HDFS-14241.002.patch
          1 kB
          Siyao Meng

        Activity

          People

            smeng Siyao Meng
            smeng Siyao Meng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: