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

   ## What changes were proposed in this pull request?
   `DirectoryDeletingService#optimizeDirDeletesAndSubmitRequest` and 
`DirectoryDeletingService#processDeletedDirectories` have duplicate code 
snippets. This patch refactors both methods and eliminates the duplicate part.
   
   
   Please describe your PR in detail:
   This patch has extracted a helper method `processDirectoryRequests` and a 
static inner class `ProcessDirectoryResult` to reduce duplicate code.
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-13232
   
   ## How was this patch tested?
   Given that it's just a refactor, the patch won't have any new test cases, 
and the existing tests should pass.
   


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