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

Provide feedback on successful renameSnapshot and deleteSnapshot

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.1.2
    • Fix Version/s: 3.3.0
    • Component/s: hdfs, shell
    • Labels:
      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.002.patch
          1 kB
          Siyao Meng
        2. HDFS-14241.001.patch
          0.8 kB
          Siyao Meng

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: