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-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI… #2730
Conversation
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
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.
LGTM.
I have one comment posted inline.
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
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.
Good Work @JyotinderSingh. Added few comments, please go through it. Thanks!
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
...onefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
Outdated
Show resolved
Hide resolved
...egration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileSystemMissingParent.java
Outdated
Show resolved
Hide resolved
I've updated the patch with the requested changes @rakeshadr @bharatviswa504 |
...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 patch @JyotinderSingh. I have left few minor comments. |
28b8499
to
e17b784
Compare
I'm adding an upgrade case for wider discussion: Assume, User OM has upgraded to OM_1.2.0 with case-1) step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new During upgrade there could be chances of both old_client_1.1.0 and new_client_1.2.0 co-exists, should we change the default value to This is the reason( @bharatviswa504, @mukul1987 welcome thoughts, thanks! |
I have few questions.
We are doing validation only in new client, not understood still how it can cause old clients an issue? (Because during upgrade based on the enable flag, we will change all the bucket types to OBS/LEGACY right?) |
I think now I am understanding the reason behind the proposal of setting to LEGACY, so that in fs the check will pass, and we donot need to update tests. Is there any other reason other than tests update, it will cause issues in real deployments? |
@bharatviswa504 thanks for the quick response. Added my response here:
Yes, this makes the existing test cases happy and these tests represents
@bharatviswa504 In real deployments during upgrade phase both Instead of changing the default value from OBS to LEGACY, I am thinking of introducing a client side flag option-1) option-2) |
3d01b74
to
2179e4f
Compare
The client side validation will be handled in jira HDDS-5959 and will continue the discussion there. |
+1 LGTM. Thank you @JyotinderSingh for the good work and will merge it once we get a clean CI report. Thanks @mukul1987 , @bharatviswa504 , @aryangupta1998 for the reviews. |
…MIZED layout
What changes were proposed in this pull request?
The idea of this task is to change the default layout behavior of ofs client, it should by default create bucket in FILE_SYSTEM_OPTIMIZED layout.
Presently, client is sending BucketLayout.DEFAULT, which is LEGACY to the OM. This has to be modified to FILE_SYSTEM_OPTIMIZED.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5839
How was this patch tested?
Related integration tests