unknowntpo opened a new pull request, #9102:
URL: https://github.com/apache/ozone/pull/9102

   Extract duplicate code for processing keys and acquiring locks into a helper 
method. Both subdirectory and subfile processing loops had identical code for:
   - Converting protobuf key to OmKeyInfo
   - Creating path and delete keys
   - Acquiring write locks for volume/bucket pairs
   
   Introduced ProcessedKeyInfo helper class to encapsulate all extracted 
information (keyInfo, deleteKey, volumeName, bucketName, volBucketPair) and 
processKeyAndAcquireLock method to eliminate code duplication.
   
   ## What changes were proposed in this pull request?
   
   Remove duplicated code
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-13722
   
   ## How was this patch tested?
   
   UT: `TestOMDirectoriesPurgeRequestAndResponse`
   


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