Uh oh!
There was an error while loading. Please reload this page.
HDDS-4102. Normalize Keypath for lookupKey. - #1315
Conversation
rakeshadr
left a comment
There was a problem hiding this comment.
Thanks @bharatviswa504 for the contribution.
TestOzoneFileSystem#testDeleteCreatesFakeParentDir test is failing with this fix. Please take care this.
elek
commented
Aug 13, 2020
Thanks the patch @bharatviswa504. Cross-linking my generic questions: https://issues.apache.org/jira/browse/HDDS-4097 |
Mistakenly for this PR branch was created in apache repo. @elek @rakeshadr Please have a look into #1328 |
Thanks the answers. Just let me clear here: these are not blocking questions, just parallel conversations which is related. |
What changes were proposed in this pull request?
When ozone.om.enable.filesystem.paths, OM normalizes path, and stores the Keyname.
Now when user tries to read the file from S3 using the keyName which user has used to create the Key, it will return error KEY_NOT_FOUND
The issue is,
lookupKeyalso need to normalize path, when ozone.om.enable.filesystem.paths is enabled. This is a common API used by S3/FS.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4102
How was this patch tested?
Added a test.