[ 
https://issues.apache.org/jira/browse/HDDS-9333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767644#comment-17767644
 ] 

Aswin Shakil commented on HDDS-9333:
------------------------------------

The {{Key Manager}} is specific to either a snapshot or active db. In 
{{SnapshotDeletingService}} we are expanding the *deletedDirTable* into 
snapshot's *deletedTable* for Garbage collection.

Before the fix, The {{SnasphotDeletingService}} will call 
{{optimizeDirDeletesAndSubmitRequest}} which inturn calls this method 
*keyManager.getPendingDeletionSubDirs()*. We will get pending deleted subdirs 
of the active db since we are not passing snapshot's key manager. 

This will move active db's deleted entries to the snapshot's *deletedTable* 
which is wrong. 
cc: [~adoroszlai]

> Snapshot should use snapshot's keyManager in 
> optimizeDirDeletesAndSubmitRequest
> -------------------------------------------------------------------------------
>
>                 Key: HDDS-9333
>                 URL: https://issues.apache.org/jira/browse/HDDS-9333
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: OM, Snapshot
>            Reporter: Aswin Shakil
>            Assignee: Aswin Shakil
>            Priority: Critical
>              Labels: ozone-snapshot, pull-request-available
>




--
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