Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9428

[snapshot] Exclusive size not populated properly when an intermediate snapshot is deleted in a chain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Snapshot

    Description

      Steps :

      1. Create vol/buck and key
      2. Create snapshot snap1
      3. Create snapshot snap2
      4. Delete key 
      5. Delete snapshot snap2
      6. Create snapshot snap3 before the snap2 is reclaimed
      7. Check exclusiveSize of all snapshots

      Expected behaviour - exclusiveSize of snap1 should be the size of the key, since the key is now only held by that snapshot.

      Observed behaviour - exclusiveSize of snap1 is 0

      Snapshot contents -

      # ozone fs -ls -R ofs://ozone1/vol1/buck1/.snapshot
      drwxrwxrwx   - om om        668 2023-10-11 06:43 ofs://ozone1/vol1/buck1/.snapshot/snap1
      -rw-rw-rw-   3 om om        668 2023-10-11 06:43 ofs://ozone1/vol1/buck1/.snapshot/snap1/key1
      drwxrwxrwx   - om om          0 2023-10-11 07:10 ofs://ozone1/vol1/buck1/.snapshot/snap3 

      Snapshot details -

      # ozone sh snapshot ls vol1/buck1
      [ {
        "volumeName" : "vol1",
        "bucketName" : "buck1",
        "name" : "snap1",
        "creationTime" : 1697006634077,
        "snapshotStatus" : "SNAPSHOT_ACTIVE",
        "snapshotId" : "48ffa4d2-1751-42e5-a7be-62a6f28cadfa",
        "snapshotPath" : "vol1/buck1",
        "checkpointDir" : "-48ffa4d2-1751-42e5-a7be-62a6f28cadfa",
        "referencedSize" : 668,
        "referencedReplicatedSize" : 2004,
        "exclusiveSize" : 0,
        "exclusiveReplicatedSize" : 0
      }, {
        "volumeName" : "vol1",
        "bucketName" : "buck1",
        "name" : "snap3",
        "creationTime" : 1697008218140,
        "snapshotStatus" : "SNAPSHOT_ACTIVE",
        "snapshotId" : "9e2e0a52-090c-4afe-8b4c-6288078731e2",
        "snapshotPath" : "vol1/buck1",
        "checkpointDir" : "-9e2e0a52-090c-4afe-8b4c-6288078731e2",
        "referencedSize" : 0,
        "referencedReplicatedSize" : 0,
        "exclusiveSize" : 0,
        "exclusiveReplicatedSize" : 0
      } ] 

      Attachments

        Activity

          People

            aswinshakil Aswin Shakil
            jyosin Jyotirmoy Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: