Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15477 Enforce ordered snapshot deletion
  3. HDFS-15498

Show snapshots deletion status in snapList cmd

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • snapshots
    • None

    Description

      HDFS-15488 adds a cmd to list all snapshots for a given snapshottable directory. A snapshot can be just marked as deleted with ordered deletion config set. This Jira aims to add deletion status to cmd output.

       

      SAMPLE OUTPUT:

      sbanerjee-MBP15:hadoop-3.4.0-SNAPSHOT sbanerjee$ bin/hdfs lsSnapshottableDir
      drwxr-xr-x 0 sbanerjee supergroup 0 2020-07-27 11:52 2 65536 /user
      sbanerjee-MBP15:hadoop-3.4.0-SNAPSHOT sbanerjee$ bin/hdfs lsSnapshot /user
      drwxr-xr-x 0 sbanerjee supergroup 0 2020-07-27 11:52 1 ACTIVE /user/.snapshot/s1
      drwxr-xr-x 0 sbanerjee supergroup 0 2020-07-27 11:51 0 DELETED /user/.snapshot/s20200727-115156.407

      Attachments

        1. HDFS-15498.000.patch
          7 kB
          Shashikant Banerjee

        Issue Links

          Activity

            People

              shashikant Shashikant Banerjee
              shashikant Shashikant Banerjee
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: