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

Initialize snapshot trash root during NameNode startup if enabled

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      This is a follow-up to HDFS-15607.

      Goal:

      Initialize (create) snapshot trash root for all existing snapshottable directories if dfs.namenode.snapshot.trashroot.enabled is set to true. So admins won't have to run dfsadmin -provisionTrash manually on all those existing snapshottable directories.

      The change is expected to land in FSNamesystem.

      Discussion:
      1. Currently in HDFS-15607, the snapshot trash root creation logic is on the client side. But in order for NN to create it at startup, the logic must (also) be implemented on the server side as well. – which is also a requirement by WebHDFS (HDFS-15612).
      2. Alternatively, we can provide an extra parameter to the -provisionTrash command like: dfsadmin -provisionTrash -all to initialize/provision trash root on all existing snapshottable dirs.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 10m
                  3h 10m