Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8544 Snapshot feature Phase 2 : Further enhancements for Ozone Snapshots
  3. HDDS-8579

[Snapshot] Allow a bucket to be deleted once all snapshots on it are deleted even if not all are reclaimed

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      In HDDS-6984, a check is added that prevents a bucket from being deleted if any snapshot info entry exists in snapshotInfoTable:

      https://github.com/apache/ozone/commit/52103f273a186b1b3f1b0390e2363af3d45c2618#diff-d08050bb16c72a13afe3b3ae5c5eab39132130118adc1bdc0f64b86300f73a10R219-R255

      As sumit.aga@gmail.com recently brought up, this check might be too restrictive.

      We can possibly relax the condition that so even if there are deleted snapshots that still needs to be reclaimed, we will allow the bucket entry deletion, as long as there are no ACTIVE snapshots on the bucket anymore. (Just need to double check if we utilize active DB's bucketTable in SnapshotDeletingTask, use snapshot's bucketTable if so. aswinshakil)

      cc sshenoy, sumit.aga@gmail.com

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: