Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, OM Metadata deletedTable stores <Key Name, OMKeyInfo>
When a user deletes a Key, <key name, omKeyInfo> is moved to deletedTable.
If a user creates and deletes key with exact same name in quick succession repeatedly, then old <key name, omKeyInfo> can get overwritten and we may be left with dangling blocks.
To address this, currently we append delete timestamp to keyname and preserve the multiple delete attempts for same key name.
However, for GDPR compliance we need a way to check if a key is deleted from deletedTable and thus given the above explanation, we may not get accurate information and it must also confuse the users.
This Jira aims to:
- Create new structure RepeatedKeyInfo which allows us to group multiple KeyInfo which can be saved to deletedTable corresponding to a keyname as <KeyName, RepeatedKeyInfo>
- Due to this, before we move a key to deletedTable, we need to check if key with same name exists. If yes, then fetch the existing instance and add the latest key to the list, store it back to deletedTable, else create a new instance and save to table
Attachments
Issue Links
- is depended upon by
-
HDDS-2017 Add option to confirm if a key has been deleted from DeletedKeys table in OM
- Resolved
- links to