[ 
https://issues.apache.org/jira/browse/HDDS-12611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Andika updated HDDS-12611:
-------------------------------
    Target Version/s: 2.0.0, 1.4.2  (was: 2.0.0)

> Snapshot creation is removing extra keys from AOS's DB
> ------------------------------------------------------
>
>                 Key: HDDS-12611
>                 URL: https://issues.apache.org/jira/browse/HDDS-12611
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Snapshot
>            Reporter: Hemant Kumar
>            Assignee: Hemant Kumar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>         Attachments: Snapshot_orphan_blocks.jpg
>
>
> On snapshot creation, we are not usingthe correct prefix to remove keys from 
> deletedTable of AOS’s DB. Prefix does not end with / (code) which means for 
> bucket /vol1/buck1 we will move all the keys belonging to bucket /vol1/buck1 
> and buckets /vol1/buck1[0-9]. This issue is only for OBS bucket and legacy.
> Here is an example, we have an Active Object store with keyTable and 
> deletedTable.
> !Snapshot_orphan_blocks.jpg! 
> Now, when Snap1 is taken on the bucket: {*}/vol1/buck1{*}.
> In current code, along with key {*}/vol1/buck1/key1{*}, keys 
> */vol1/buck12/key1* and */vol1/buck12/key3* keys are removed from the 
> deletedTable of AOS.
> This is wrong because Snasphot DeepClean and Snapshot Delete Service use the 
> correct prefix ({*}/volumeName/bucektName/{*}) and will skip keys starting 
> with prefixes other than {*}/vol1/buck1/{*}. Because of that keys 
> */vol1/buck12/key1* and */vol1/buck12/key3* will never be reclaimed and 
> result in orphan blocks in DN.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to