kuenishi opened a new pull request #3225:
URL: https://github.com/apache/ozone/pull/3225


   ## What changes were proposed in this pull request?
   
   This patch changes:
   
   - The key format of delete table from full key to UpdateID
   - The UpdateID implementation of OmKeyInfos, from transaction log index to 
epoch-prefixed log index in the same way as ObjectID
   
   While there is no need to change deletion service, this change resolves two 
existing issues. (1) The race condition of object deletion and deletion 
service, which may lead to blocks leaking (key infos deleted in OM while blocks 
remain in SCM), and (2) the order of keys and blocks to be deleted, from being 
deleted in alphabetical ordering of full keys, to being deleted in numerical 
ordering of UpdateIDs with which the keys deleted. That said, newly-deleted 
keys will be always deleted later, regardless of the key name.
   
   To apply these changes to all APIs, the amount of work would become huge. So 
I split HDDS-5905 to several subtasks and this is the very first one, which 
fixes key format of APIs of deleting objects and files (There are a lot of 
cases where KeyInfos are inserted into the delete table).  See [my design 
doc](https://docs.google.com/document/d/1KeyhiE1i5SqRSgLy-pIOGW9X6mUYb8iYEkEoDAEQD9Q/edit#)
 for further details and updates since last discussion.
   
   ## What is the link to the Apache JIRA
   
   HDDS-6483
   (Parent task: HDDS-5905)
   
   ## How was this patch tested?
   
   unit tests
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to