Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-4102. Normalize Keypath for lookupKey. #1315

Closed
wants to merge 2 commits into from
Closed

Conversation

bharatviswa504
Copy link
Contributor

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, lookupKey also 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.

@bharatviswa504 bharatviswa504 changed the title HDDS-4012. Normalize Keypath for lookupKey. HDDS-4102. Normalize Keypath for lookupKey. Aug 11, 2020
Copy link
Contributor

@rakeshadr rakeshadr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bharatviswa504 for the contribution.

TestOzoneFileSystem#testDeleteCreatesFakeParentDir test is failing with this fix. Please take care this.

@elek
Copy link
Member

elek commented Aug 13, 2020

Thanks the patch @bharatviswa504. Cross-linking my generic questions: https://issues.apache.org/jira/browse/HDDS-4097

@bharatviswa504 bharatviswa504 deleted the HDDS-4017 branch August 13, 2020 17:29
@bharatviswa504
Copy link
Contributor Author

bharatviswa504 commented Aug 13, 2020

Mistakenly for this PR branch was created in apache repo.
Deleted my work in progress branch from apache repo, and created a new PR for this #1328

@elek
I have replied to your comments in Jira.

@rakeshadr
Thanks for the review. Modified code to fix the test.

Please have a look into #1328

@elek
Copy link
Member

elek commented Aug 14, 2020

Thanks the answers.

Just let me clear here: these are not blocking questions, just parallel conversations which is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants