sadanand48 opened a new pull request #1851:
URL: https://github.com/apache/ozone/pull/1851


   …omRatisDisabled
   
   ## What changes were proposed in this pull request?
   TestOzoneFileSystem testTrash fails while setting `enableFsPaths` to true. 
This is because of using `DeleteKeyRequest `for delete. 
   There are 2 operations that happen when a key is moved to Trash 1. rename 2 
.delete .
    While Renaming a directory key,  the renamedKey is stored  in KeyTable with 
 "/"  (`RenameKeyRequest`)  irrespective of whether enableFsPaths value but 
while deleting a key via `DeleteKeyRequest` the "/" is removed and a lookup is 
done on KeyTable which results in KEY_NOT_FOUND.  Using `DeleteKey**s**` 
instead of `DeleteKey` will solve this issue as a lookup is not done on the 
normalised key.
   [This PR](https://github.com/apache/ozone/pull/1256) explains why 
normalisation is not done while rename
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-4751
   ## How was this patch tested?
   Existing Test Trash unit test.
   


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

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