You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/10/11 14:00:51 UTC
[GitHub] [ozone] JyotinderSingh opened a new pull request #2730: HDDS-5839. . Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
JyotinderSingh opened a new pull request #2730:
URL: https://github.com/apache/ozone/pull/2730
…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
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r738278946
##########
File path: hadoop-ozone/dist/src/main/smoketest/mapreduce.robot
##########
@@ -24,7 +24,7 @@ Test Timeout 4 minute
*** Variables ***
${SCHEME} o3fs
${volume} volume1
-${bucket} bucket1
+${bucket} mrbucket1
Review comment:
@JyotinderSingh could you tell me the reasoning to modify existing bucket name to `mrbucket1` . Is this causing test failure ?
##########
File path: hadoop-ozone/dist/src/main/smoketest/createmrenv.robot
##########
@@ -24,15 +24,15 @@ Test Timeout 2 minute
*** Variables ***
${SCHEME} o3fs
${volume} volume1
-${bucket} bucket1
+${bucket} mrbucket1
*** Keywords ***
Create volume
${result} = Execute ozone sh volume create /${volume} --user hadoop --space-quota 100TB --namespace-quota 100
Should not contain ${result} Failed
Create bucket
- Execute ozone sh bucket create /${volume}/${bucket}
+ Execute ozone sh bucket create /${volume}/${bucket} --type FILE_SYSTEM_OPTIMIZED
Review comment:
@JyotinderSingh I believe you have explicitly set `--type FILE_SYSTEM_OPTIMIZED` to avoid below validation error on the ofs/o3fs client, right?
```
// Check if bucket layout is valid, OFS buckets cannot be in
// OBJECT_STORE layout
BucketLayout bucketLayout = bucket.getBucketLayout();
if (bucketLayout.equals(BucketLayout.OBJECT_STORE)) {
throw new IllegalArgumentException(bucketLayout + " does not support" +
" file system semantics. Bucket Layout must be " +
BucketLayout.FILE_SYSTEM_OPTIMIZED + " or "
+ BucketLayout.LEGACY);
}
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r746198870
##########
File path: hadoop-hdds/common/src/main/resources/ozone-default.xml
##########
@@ -2993,6 +2993,21 @@
FILE_SYSTEM_OPTIMIZED: This layout allows the bucket to support atomic rename/delete operations and
also allows interoperability between S3 and FS APIs. Keys written via S3 API with a "/" delimiter
will create intermediate directories.
+ For testing purposes LEGACY layout is also allowed. LEGACY layout is not recommended and will be removed in the
+ future.
+ </description>
+ </property>
+
+ <property>
+ <name>ozone.client.test.ofs.default.bucket.layout</name>
+ <value>FILE_SYSTEM_OPTIMIZED</value>
+ <tag>OZONE, MANAGEMENT</tag>
Review comment:
tag should be :
`<tag>OZONE, CLIENT</tag>`
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r746198406
##########
File path: hadoop-hdds/common/src/main/resources/ozone-default.xml
##########
@@ -2993,6 +2993,21 @@
FILE_SYSTEM_OPTIMIZED: This layout allows the bucket to support atomic rename/delete operations and
also allows interoperability between S3 and FS APIs. Keys written via S3 API with a "/" delimiter
will create intermediate directories.
+ For testing purposes LEGACY layout is also allowed. LEGACY layout is not recommended and will be removed in the
+ future.
+ </description>
+ </property>
+
+ <property>
+ <name>ozone.client.test.ofs.default.bucket.layout</name>
+ <value>FILE_SYSTEM_OPTIMIZED</value>
+ <tag>OZONE, MANAGEMENT</tag>
+ <description>
+ Default bucket layout used by Ozone Manager when buckets are created using Ozone File System.
Review comment:
Please change the description to convey that this is client side config and for testing purpose only.
How about something like,
"`This configuration is used for testing purpose. Default bucket layout value when buckets are created using ofs. Supported values are LEGACY and FILE_SYSTEM_OPTIMIZED`"
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r726219477
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -148,6 +153,16 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
+ " be omitted when ozone.om.service.ids is defined.");
}
+ // TODO: Discuss whether to throw Exception if BucketLayout is
+ // OBJECT_STORE.
+ if (StringUtils.equalsIgnoreCase(
Review comment:
I'm removing this check for now, seems like it's causing various other failures
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-964839378
+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.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr merged pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr merged pull request #2730:
URL: https://github.com/apache/ozone/pull/2730
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r726296186
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -148,6 +153,16 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
+ " be omitted when ozone.om.service.ids is defined.");
}
+ // TODO: Discuss whether to throw Exception if BucketLayout is
+ // OBJECT_STORE.
+ if (StringUtils.equalsIgnoreCase(
Review comment:
The comment is, if a bucket used in OBS, on which FS semantics are not supported. Do we want to throw an exception, instead of causing some random exception?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954134491
> I'm adding an upgrade case for wider discussion:
>
> Assume, User OM has upgraded to OM_1.2.0 with `ozone.default.bucket.layout=OBS`. Now, OM will set default bucket layout to OBS if a client creates a new bucket without specifying bucket layout argument.
>
> **case-1)** step-1) An `old_client_1.1.0` creates a new bucket ` BUCKET_01` in OM_1.2.0 and the bucket will be created successfully with default bucket layout OBS.
>
> step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new `BUCKET_01` then it will throw validation error.
>
> 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 `ozone.default.bucket.layout=LEGACY` ? With this the o3fs/ofs client will be happy and avoids validation errors.
>
> This is the reason(`ozone.default.bucket.layout=OBS`) for many test failures in our CI.
>
> @bharatviswa504, @mukul1987 welcome thoughts, thanks!
I have few questions.
1. Can old client talk to FSO buckets?
With this the o3fs/ofs client will be happy and avoids validation errors.
We are doing validation only in new client, not understood still how it can make old clients happy? (Because during upgrade based on the enable flag, we will change all the bucket types to OBS/LEGACY right?)
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954134491
> I'm adding an upgrade case for wider discussion:
>
> Assume, User OM has upgraded to OM_1.2.0 with `ozone.default.bucket.layout=OBS`. Now, OM will set default bucket layout to OBS if a client creates a new bucket without specifying bucket layout argument.
>
> **case-1)** step-1) An `old_client_1.1.0` creates a new bucket ` BUCKET_01` in OM_1.2.0 and the bucket will be created successfully with default bucket layout OBS.
>
> step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new `BUCKET_01` then it will throw validation error.
>
> 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 `ozone.default.bucket.layout=LEGACY` ? With this the o3fs/ofs client will be happy and avoids validation errors.
>
> This is the reason(`ozone.default.bucket.layout=OBS`) for many test failures in our CI.
>
> @bharatviswa504, @mukul1987 welcome thoughts, thanks!
I have few questions.
1. Can old client talk to FSO buckets?
>With this the o3fs/ofs client will be happy and avoids validation errors.
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?)
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r726298911
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -148,6 +153,16 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
+ " be omitted when ozone.om.service.ids is defined.");
}
+ // TODO: Discuss whether to throw Exception if BucketLayout is
+ // OBJECT_STORE.
+ if (StringUtils.equalsIgnoreCase(
Review comment:
Here it is we should check the bucket we are handling is of FILE_SYSTEM_OPTIMIZED, not check the configuration.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954138986
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?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r733333536
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileSystemMissingParent.java
##########
@@ -104,8 +107,8 @@ public void testCloseFileWithDeletedParent() throws Exception {
// Close should throw exception, Since parent doesn't exist.
LambdaTestUtils.intercept(OMException.class,
- "Cannot create file : parent/file " + "as parent "
- + "directory doesn't exist", () -> stream.close());
+ "Failed to find parent directory of parent/file in" +
Review comment:
@JyotinderSingh
Like we discussed offline, please modify OzoneManager code by throwing an exception with below kinda message as its more meaningful to an end-user.
```
"Cannot create file : parent/file " + "as parent "
+ "directory doesn't exist", () -> stream.close());
```
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -222,6 +225,13 @@ private OzoneBucket getBucket(String volumeStr, String bucketStr,
OzoneBucket bucket;
try {
bucket = proxy.getBucketDetails(volumeStr, bucketStr);
+ String bucketLayout = bucket.getBucketLayout().name();
+ if (!StringUtils.equalsIgnoreCase(bucketLayout,
+ OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT_FILE_SYSTEM_OPTIMIZED)) {
Review comment:
@JyotinderSingh
There is a case on upgrade path. LEGACY represents a bucket without (empty/null) layout. What if a user performs operation on old buckets(LEGACY layout), presently it will fail. Since we/ozone don't have a layout conversion tool yet, how about to modify the validation by specifically checking OBJECT_STORE?
```
if (StringUtils.equalsIgnoreCase(bucketLayout, BucketLayout.OBJECT_STORE.name())) {
// throw exception.
}
```
I hope, some of the test case failures will get fixed with this change.
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -222,6 +225,13 @@ private OzoneBucket getBucket(String volumeStr, String bucketStr,
OzoneBucket bucket;
try {
bucket = proxy.getBucketDetails(volumeStr, bucketStr);
+ String bucketLayout = bucket.getBucketLayout().name();
+ if (!StringUtils.equalsIgnoreCase(bucketLayout,
+ OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT_FILE_SYSTEM_OPTIMIZED)) {
+ throw new IllegalArgumentException(bucketLayout + " does not support" +
+ " file system semantics. Bucket Layout must be " +
+ OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT_FILE_SYSTEM_OPTIMIZED);
Review comment:
@JyotinderSingh
Can you rename `OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT_FILE_SYSTEM_OPTIMIZED` to `OMConfigKeys.OZONE_BUCKET_LAYOUT_FILE_SYSTEM_OPTIMIZED`. Its unrelated to this patch but its a simple change to incorporate, I think. Thanks!
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-964837883
> Instead of changing the default value from OBS to LEGACY, I am thinking of introducing a client side flag
>
> **option-1)** `ozone.client.bucket.layout.validation=false`. By default we can set it to false and once the cluster is fully upgraded customer can set it to true that will enable the o3fs/ofs validation check.
>
> **option-2)** `ozone.client.bucket.layouts.allowed=FSO,OBS`. Here a comma-separated list of values where ofs/o3fs can do a validation check. Later after upgradation this can be set to FSO.
The client side validation will be handled in jira HDDS-5959 and will continue the discussion there.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-964095727
Mentioning here for reference: I am adding the client side validation back to the patch which will throw an exception if OFS encounters a bucket with OBS layout. This requires some workarounds in some of the tests where we need LEGACY bucket layouts (we disallow that operation directly - [layout defaults to OBS if client tries to create a LEGACY bucket](https://github.com/apache/ozone/blob/4c2181ff42be3d6b7dbec4f0c3da549d89e12fc0/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java#L145)).
To obtain a LEGACY bucket we set the following config in the MiniOzoneCluster:
```
conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT, BucketLayout.LEGACY.name());
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r738367134
##########
File path: hadoop-ozone/dist/src/main/smoketest/createmrenv.robot
##########
@@ -24,15 +24,15 @@ Test Timeout 2 minute
*** Variables ***
${SCHEME} o3fs
${volume} volume1
-${bucket} bucket1
+${bucket} mrbucket1
*** Keywords ***
Create volume
${result} = Execute ozone sh volume create /${volume} --user hadoop --space-quota 100TB --namespace-quota 100
Should not contain ${result} Failed
Create bucket
- Execute ozone sh bucket create /${volume}/${bucket}
+ Execute ozone sh bucket create /${volume}/${bucket} --type FILE_SYSTEM_OPTIMIZED
Review comment:
Yes, by default we were creating buckets in OBJECT_STORE layout which was incompatible with this code snippet. Changed it to FSO to circumvent that.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954134491
> I'm adding an upgrade case for wider discussion:
>
> Assume, User OM has upgraded to OM_1.2.0 with `ozone.default.bucket.layout=OBS`. Now, OM will set default bucket layout to OBS if a client creates a new bucket without specifying bucket layout argument.
>
> **case-1)** step-1) An `old_client_1.1.0` creates a new bucket ` BUCKET_01` in OM_1.2.0 and the bucket will be created successfully with default bucket layout OBS.
>
> step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new `BUCKET_01` then it will throw validation error.
>
> 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 `ozone.default.bucket.layout=LEGACY` ? With this the o3fs/ofs client will be happy and avoids validation errors.
>
> This is the reason(`ozone.default.bucket.layout=OBS`) for many test failures in our CI.
>
> @bharatviswa504, @mukul1987 welcome thoughts, thanks!
I have few questions.
1. Can old client talk to FSO buckets?
>With this the o3fs/ofs client will be happy and avoids validation errors.
We are doing validation only in new client, not understood still how it can make old clients happy? (Because during upgrade based on the enable flag, we will change all the bucket types to OBS/LEGACY right?)
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-948573382
I've updated the patch with the requested changes @rakeshadr @bharatviswa504
Currently on my local I can see partial test failures in `TestOzoneFileInterfaces.java`, `TestOzoneFSWithObjectStoreCreate.java,` `TestRootedOzoneFileSystem.java`, `TestOzoneFileSystem.java`. These seem to mainly be due to some behaviour changes introduced by the patch.
The MR Acceptance test also seems to be failing due to similar reasons, I believe some updates to it would also be required from my side.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] aryangupta1998 commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
aryangupta1998 commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-948827373
Thanks for the patch @JyotinderSingh. I have left few minor comments.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] bharatviswa504 commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
bharatviswa504 commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r728752286
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -222,6 +225,13 @@ private OzoneBucket getBucket(String volumeStr, String bucketStr,
OzoneBucket bucket;
try {
bucket = proxy.getBucketDetails(volumeStr, bucketStr);
+ String bucketLayout = bucket.getBucketLayout().name();
Review comment:
I think need similar kind of change in BasicOzoneClientAdapterImpl also
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh removed a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh removed a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-964095727
Mentioning here for reference: I am adding the client side validation back to the patch which will throw an exception if OFS encounters a bucket with OBS layout. This requires some workarounds in some of the tests where we need LEGACY bucket layouts (we disallow that operation directly - [layout defaults to OBS if client tries to create a LEGACY bucket](https://github.com/apache/ozone/blob/4c2181ff42be3d6b7dbec4f0c3da549d89e12fc0/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java#L145)).
To obtain a LEGACY bucket we set the following config in the MiniOzoneCluster:
```
conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT, BucketLayout.LEGACY.name());
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r738367134
##########
File path: hadoop-ozone/dist/src/main/smoketest/createmrenv.robot
##########
@@ -24,15 +24,15 @@ Test Timeout 2 minute
*** Variables ***
${SCHEME} o3fs
${volume} volume1
-${bucket} bucket1
+${bucket} mrbucket1
*** Keywords ***
Create volume
${result} = Execute ozone sh volume create /${volume} --user hadoop --space-quota 100TB --namespace-quota 100
Should not contain ${result} Failed
Create bucket
- Execute ozone sh bucket create /${volume}/${bucket}
+ Execute ozone sh bucket create /${volume}/${bucket} --type FILE_SYSTEM_OPTIMIZED
Review comment:
Yes, by default we were creating buckets in OBJECT_STORE layout which was incompatible with this code snippet.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r738370064
##########
File path: hadoop-ozone/dist/src/main/smoketest/mapreduce.robot
##########
@@ -24,7 +24,7 @@ Test Timeout 4 minute
*** Variables ***
${SCHEME} o3fs
${volume} volume1
-${bucket} bucket1
+${bucket} mrbucket1
Review comment:
Yes, the reason for this change was a little involved.
`createbucketenv.robot` creates a bucket in `OBJECT_STORE` layout (default since no args passed)
Now during test run`createmrenv.robot` does not end up creating it’s own bucket since it finds them already created by `createbucketenv.robot` - but it uses OFS and needs file system semantics, which are only present in `FILE_SYSTEM_OPTIMIZED` buckets.
I changed the bucket name here so that it doesn't find a bucket with the same name already created by `createbucketenv.robot` and creates its own buckets in FSO layout.
Does the reasoning make sense?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-948573382
I've updated the patch with the requested changes @rakeshadr @bharatviswa504
Currently on my local I can see partial test failures in `TestOzoneFileInterfaces.java`, `TestOzoneFSWithObjectStoreCreate.java,` `TestRootedOzoneFileSystem.java`, `TestOzoneFileSystem.java`. These seem to mainly be due to some behaviour changes introduced by changes.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-948573382
I've updated the patch with the requested changes @rakeshadr @bharatviswa504
Currently on my local I can see partial test failures in `TestOzoneFileInterfaces.java`, `TestOzoneFSWithObjectStoreCreate.java,` `TestRootedOzoneFileSystem.java`, `TestOzoneFileSystem.java`. These seem to mainly be due to some behaviour changes introduced by changes.
The MR Acceptance test also seems to be failing due to similar reasons, I believe some updates to it would also be required from my side.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-953802314
I'm adding an upgrade case for wider discussion:
Assume, User OM has upgraded to OM_1.2.0 with `ozone.default.bucket.layout=OBS`. Now, OM will set default bucket layout to OBS if a client creates a new bucket without specifying bucket layout argument.
**case-1)**
step-1) An `old_client_1.1.0` creates a new bucket ` BUCKET_01` in OM_1.2.0 and the bucket will be created successfully with default bucket layout OBS.
step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new `BUCKET_01` then it will throw validation error.
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 `ozone.default.bucket.layout=LEGACY` ? With this the o3fs/ofs client will be happy and avoids validation errors.
This is the reason(`ozone.default.bucket.layout=OBS`) for many test failures in our CI.
@bharatviswa504, @mukul1987
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-953802314
I'm adding an upgrade case for wider discussion:
Assume, User OM has upgraded to OM_1.2.0 with `ozone.default.bucket.layout=OBS`. Now, OM will set default bucket layout to OBS if a client creates a new bucket without specifying bucket layout argument.
**case-1)**
step-1) An `old_client_1.1.0` creates a new bucket ` BUCKET_01` in OM_1.2.0 and the bucket will be created successfully with default bucket layout OBS.
step-2) Now, new_client_1.2.0 performs o3fs/ofs operation on this new `BUCKET_01` then it will throw validation error.
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 `ozone.default.bucket.layout=LEGACY` ? With this the o3fs/ofs client will be happy and avoids validation errors.
This is the reason(`ozone.default.bucket.layout=OBS`) for many test failures in our CI.
@bharatviswa504, @mukul1987 welcome thoughts, thanks!
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr edited a comment on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr edited a comment on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954441133
@bharatviswa504 thanks for the quick response. Added my response here:
> 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.
Yes, this makes the existing test cases happy and these tests represents`new_client_1.2.0` FS operations. @JyotinderSingh please confirm.
>Is there any other reason other than tests update, it will cause issues in real deployments?
@bharatviswa504 In real deployments during upgrade phase both `old_client_1.1.0` and `new_client_1.2.0` can co-exists. Adding the strict bucket layout validation will fail the ofs/o3fs based customer applications and they need to re-write it their application while upgrading to newer software and ensure that all FS operations has to be done only on FSO buckets, right?
Instead of changing the default value from OBS to LEGACY, I am thinking of introducing a client side flag
**option-1)** `ozone.client.bucket.layout.validation=false`. By default we can set it to false and once the cluster is fully upgraded customer can set it to true that will enable the o3fs/ofs validation check.
**option-2)** `ozone.client.bucket.layouts.allowed=FSO,OBS`. Here a comma-separated list of values where ofs/o3fs can do a validation check. Later after upgradation this can be set to FSO.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] rakeshadr commented on pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
rakeshadr commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-954441133
@bharatviswa504 thanks for the quick response. Added my response here:
> 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.
Yes, this makes the existing test cases happy and these tests represents`new_client_1.2.0` FS operations. @JyotinderSingh please confirm.
>Is there any other reason other than tests update, it will cause issues in real deployments?
@bharatviswa504 In real deployments during upgrade phase both `old_client_1.1.0` and `new_client_1.2.0` can co-exists. Adding the strict bucket layout validation will fail the ofs/o3fs based customer applications and they need to re-write it their application while upgrading to newer software and ensure that all FS operations has to be done only on FSO buckets, right?
Instead of changing the default value from OBS to LEGACY, I am thinking of introducing a client side flag
**option-1)** `ozone.client.bucket.layout.validation=false`. By default we can set it to false and once the cluster is fully upgraded customer can set it to true that will enable the o3fs/ofs validation check.
**option-2)** `ozone.client.bucket.layouts.allowed=FSO,OBS`. Here a comma-separated list of values where ofs/o3fs can do a validation check.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] aryangupta1998 commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
aryangupta1998 commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r733885113
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -222,6 +220,14 @@ private OzoneBucket getBucket(String volumeStr, String bucketStr,
OzoneBucket bucket;
try {
bucket = proxy.getBucketDetails(volumeStr, bucketStr);
+ String bucketLayout = bucket.getBucketLayout().name();
Review comment:
Same here, don't need to convert it to String.
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java
##########
@@ -153,6 +153,18 @@ public BasicOzoneClientAdapterImpl(String omHost, int omPort,
objectStore = ozoneClient.getObjectStore();
this.volume = objectStore.getVolume(volumeStr);
this.bucket = volume.getBucket(bucketStr);
+
+ // Check if bucket layout is valid, OFS buckets cannot be in
+ // OBJECT_STORE layout
+ String bucketLayout = bucket.getBucketLayout().name();
Review comment:
I don't think we need to convert bucketLayout to string, you can directly compare like
`bucketLayout.equals(BucketLayout.OBJECT_STORE)` and you can directly print or concat with string like
`" " + BucketLayout.FILE_SYSTEM_OPTIMIZED` without using name() function.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] JyotinderSingh commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
JyotinderSingh commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r726185072
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -148,6 +153,16 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
+ " be omitted when ozone.om.service.ids is defined.");
}
+ // TODO: Discuss whether to throw Exception if BucketLayout is
+ // OBJECT_STORE.
+ if (StringUtils.equalsIgnoreCase(
Review comment:
I had added this check here in ref to [this comment](https://github.com/apache/ozone/pull/2707#issuecomment-938984419) on a previous PR. We haven't discussed whether we wanted it in the final patch yet, that's why I added a ToDo comment for discussion above this check.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] mukul1987 commented on a change in pull request #2730: HDDS-5839. Make sure buckets created from OFS are in FILE_SYSTEM_OPTI…
Posted by GitBox <gi...@apache.org>.
mukul1987 commented on a change in pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#discussion_r726180571
##########
File path: hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -148,6 +153,16 @@ public BasicRootedOzoneClientAdapterImpl(String omHost, int omPort,
+ " be omitted when ozone.om.service.ids is defined.");
}
+ // TODO: Discuss whether to throw Exception if BucketLayout is
+ // OBJECT_STORE.
+ if (StringUtils.equalsIgnoreCase(
Review comment:
why is this check needed ?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org