[
https://issues.apache.org/jira/browse/HDDS-6683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rakesh Radhakrishnan updated HDDS-6683:
---------------------------------------
Description:
After the post finalization, user should be able to create LEGACY, FSO, OBS
layouts.
The proposal is to modify the behavior on the server-side to only use the
{{ozone.default.bucket.layout}} config if the client has not specified any
bucket layout in the protobuf message.
If the client sends LEGACY bucket layout type then OM server will not override
it with {{ozone.default.bucket.layout}} config value. This way a client has the
flexibility to create a LEGACY bucket explicitly.
Hint: We can use the {{bucketInfo.hasBucketLayout()}} Protobuf method to check
if the field is set by the user.
Reference: [Discussion here
|https://github.com/apache/ozone/pull/3411#issuecomment-1126550908]
was:
After the post finalization, the LEGACY layout specified by the client is
overridden by the configured value of {{{}ozone.default.bucket.layout{}}}.
The proposal is to modify the behavior on the server-side to only use the
{{{}ozone.default.bucket{}}}{{{}{{.layout}} {}}}config if the client has not
specified any bucket layout in the protobuf message.
If the client sends the LEGACY bucket layout type then the OM server will not
override it with the side {{ozone.default.bucket.layout}} value. This way a
client has the flexibility to create a LEGACY bucket explicitly if it doesn't
want the server configured bucket layout type.
Hint: We can use the hasBucketLayout Protobuf method to check if the field is
specified or not.
Reference: [Discussion here
|https://github.com/apache/ozone/pull/3411#issuecomment-1126550908]
> Refactor OM server bucket layout configuration usage
> ----------------------------------------------------
>
> Key: HDDS-6683
> URL: https://issues.apache.org/jira/browse/HDDS-6683
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Jyotinder Singh
> Assignee: Tanvi Penumudy
> Priority: Major
> Labels: pull-request-available
>
> After the post finalization, user should be able to create LEGACY, FSO, OBS
> layouts.
>
> The proposal is to modify the behavior on the server-side to only use the
> {{ozone.default.bucket.layout}} config if the client has not specified any
> bucket layout in the protobuf message.
> If the client sends LEGACY bucket layout type then OM server will not
> override it with {{ozone.default.bucket.layout}} config value. This way a
> client has the flexibility to create a LEGACY bucket explicitly.
> Hint: We can use the {{bucketInfo.hasBucketLayout()}} Protobuf method to
> check if the field is set by the user.
> Reference: [Discussion here
> |https://github.com/apache/ozone/pull/3411#issuecomment-1126550908]
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]