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

[snapshot] Exclusive size of snapshot is always showing 0

    XMLWordPrintableJSON

Details

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

    Description

      Exclusive size of snapshot is always showing 0

      Scenario :

      • Key size - 1MB
      • Create snap0 - empty
      • Create snap1 - key1
      • Create snap2 - key1
      • Create snap3 - key1, key2
      • Create snap4 - key1, key2(renamed)
      • Create snap5 - key1 [key2 deleted]
      • Delete snap2 and snap4
      • Create snap6 - key1, key3
      • Create snap7 - key1 [key3 deleted] 
      • Check exclusive size of snap6 - its reflected as 0, although it exclusively holds key3
      • Check exclusive size of snap3 - its reflected as 0, although it exclusively holds key2, , since other snapshot which hold key2 are deleted - snap4

      Snapshot info of snap3 -

      # ozone sh snapshot info vol-n1fu0/buck-tin1a snap-ton6m
      {
        "volumeName" : "vol-n1fu0",
        "bucketName" : "buck-tin1a",
        "name" : "snap-ton6m",
        "creationTime" : 1727997314792,
        "snapshotStatus" : "SNAPSHOT_ACTIVE",
        "snapshotId" : "0b731ad8-e256-42c1-9fdc-2a3ae22dedbc",
        "snapshotPath" : "vol-n1fu0/buck-tin1a",
        "checkpointDir" : "-0b731ad8-e256-42c1-9fdc-2a3ae22dedbc",
        "referencedSize" : 362807296,
        "referencedReplicatedSize" : 1088421888,
        "exclusiveSize" : 0,
        "exclusiveReplicatedSize" : 0
      } 

      Snapshot info of snap6 -

      # ozone sh snapshot info vol-n1fu0/buck-tin1a snap-8barh
      {
        "volumeName" : "vol-n1fu0",
        "bucketName" : "buck-tin1a",
        "name" : "snap-8barh",
        "creationTime" : 1727997400069,
        "snapshotStatus" : "SNAPSHOT_ACTIVE",
        "snapshotId" : "ddf4e855-c3fb-4026-8a42-6dfe73bfd858",
        "snapshotPath" : "vol-n1fu0/buck-tin1a",
        "checkpointDir" : "-ddf4e855-c3fb-4026-8a42-6dfe73bfd858",
        "referencedSize" : 362807296,
        "referencedReplicatedSize" : 1088421888,
        "exclusiveSize" : 0,
        "exclusiveReplicatedSize" : 0
      } 

      All snapshot contents -

      # ozone fs -ls -R ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot
      drwxrwxrwx   - hrt_qa hrt_qa          0 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-34qcr
      drwxrwxrwx   - hrt_qa hrt_qa  362807296 2024-10-03 23:16 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-8barh
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-8barh/key_1727997247
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:16 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-8barh/key_1727997378
      drwxrwxrwx   - hrt_qa hrt_qa  181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-bz1a9
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-bz1a9/key_1727997247
      drwxrwxrwx   - hrt_qa hrt_qa  362807296 2024-10-03 23:15 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-ton6m
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-ton6m/key_1727997247
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:15 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-ton6m/key_1727997298
      drwxrwxrwx   - hrt_qa hrt_qa  181403648 2024-10-03 23:15 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-vsiih
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-vsiih/key_1727997247
      drwxrwxrwx   - hrt_qa hrt_qa  181403648 2024-10-03 23:16 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-wk1to
      -rw-rw-rw-   3 hrt_qa om      181403648 2024-10-03 23:14 ofs://ozone1727943432/vol-n1fu0/buck-tin1a/.snapshot/snap-wk1to/key_1727997247 

      Attachments

        Activity

          People

            Unassigned Unassigned
            jyosin Jyotirmoy Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: