Tejaskriya opened a new pull request, #6751: URL: https://github.com/apache/ozone/pull/6751
## What changes were proposed in this pull request? BucketEndpoint#multiDelete deletes keys one by one. This causes 2 problems: 1. **Bad performance**: To delete each key, a round trip to the OM is made. 2. **DIRECTORY_NOT_EMPTY errors**, due to deletion order (in FSO buckets): For FSO buckets, if the directory is mentioned before the keys(inside the directory) in the multidelete request, it causes the request to fail even though it should be successful. By reimplementing multidelete using OMKeysDeleteRequest to delete all items in a batch, these problems can be resolved. With the existing API deleteKeys, we would not be able to get a list of errors for the keys that could not be deleted. Moreover, a OMException was being thrown if any errors were encountered. In this PR, a new API is introduced deleteKeysQuiet to tackle these changes while maintaining compatibility. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-10572 ## How was this patch tested? Existing tests and locally in docker setup cluster. -- 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]
