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

   ## What changes were proposed in this pull request?
   
   When the bucket layout is LEGACY and the ozone.om.enable.filesystem.paths 
property is enabled, deletion fails partially if keyName contains a trailing 
slash "/". The key deletion operation in normalizeKey (preExecute) removes the 
trailing slash, whereas the key in the DB retains it. This mismatch causes a 
`KEY_NOT_FOUND` error.
   
   Fixing legacy bucket directory deletion could introduce other issues. 
Instead, in this PR - we update the testcase: 
OzoneRpcClientTests.testBucketUsedNamespace to utilize fs.delete for LEGACY 
buckets cleanup.
   
   Similar issues seen previously:
   - [HDDS-10397](https://issues.apache.org/jira/browse/HDDS-10397)
   - [HDDS-10360](https://issues.apache.org/jira/browse/HDDS-10360)
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-12633
   
   ## How was this patch tested?
   
   Added parameterized 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