-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-5959. Handles bucket layout validation logic in ofs/o3fs client. #2837
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
Conversation
|
Thanks @JyotinderSingh for taking this ahead! I've gone through the test case failures quickly. Most of them are expecting FS semantics test cases and complaining about unsupported OBJECT_STORE layout.
|
...one/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
|
Thanks for the feedback @rakeshadr @mukul1987 . I have made the relevant changes - please let me know if they are fine. However currently the FS related acceptance tests are still failing due to default |
I will explore this part and update to you. |
|
@JyotinderSingh Please fix TestOzoneFSInputStream case , seems it will pass with those config values. |
@rakeshadr , The robot test tries to create bucket via cli through |
|
I think most of the tests are now passing. There does seem to be a compatibility test issue though. From my understanding - this doesn’t look like a simple fix - I believe the reason it is failing is that the old 1.1.0 client doesn’t know that the buckets created by the FS need to be in FSO layout - since we added that change in #2730. I'm not sure how we should handle this. |
b83df62 to
44bec1c
Compare
439a7f0 to
6208d94
Compare
rakeshadr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JyotinderSingh for the continuous efforts in refining this.
Thanks @mukul1987 for the reviews.
+1 LGTM, I will merge this shortly.
What changes were proposed in this pull request?
Throw an exception if a bucket accessed via OFS is in OBJECT_STORE layout. Allowed layouts are FILE_SYSTEM_OPTIMIZED and LEGACY.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5959
How was this patch tested?
Related integration tests.