ashishkumar50 commented on PR #6218: URL: https://github.com/apache/ozone/pull/6218#issuecomment-1943263150
> ` [d18f2fe](/apache/ozone/pull/6218/commits/d18f2fee1dae7727d664de4392ef7765b80bf5b2) ` @sadanand48 Thanks for the review. Assume when we create key like (Bucket is legacy with enableFileSystemPath) ozone sh key put vol1/bucket1/xyz//def/key1 file1 It gets normalized and inserted into keyTable as (Parent trailing slash is preserved in OmKeyCreateRequest and that is correct): 1) xyz/ 2) xyz/def/ 3) xyz/def/key1 Now during delete 1) xyz/def/key1 normalized as xyz/def/key1 and it is found in keyTable and deletion pass through 2) xyz/def/ gets normalized into xyz/def and since keyTable has xyz/def/ and so it is not found and throws KEY_NOT_FOUND error. But we should preserve trailing slash here during delete. -- 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]
