[
https://issues.apache.org/jira/browse/HDDS-15881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Devesh Kumar Singh updated HDDS-15881:
--------------------------------------
Description:
SetBucketProperty is the RPC/request pair that changes mutable bucket
attributes (quota, replication config, ACLs). Extend it to accept and update
the new bucket-level storagePolicy.
Note: policy changes are not retroactive to existing keys — an existing key
keeps whatever tier it was written with.
was:
Introduce a new optional storagePolicy field on OmBucketInfo and its BucketInfo
protobuf representation. Values come from OzoneStoragePolicy (HOT, WARM, COLD).
When set, this new field is the effective storage policy for the bucket. When
unset, the existing deprecated BucketInfo.storageType field remains the source
of truth for backward-compat, matching Ozone's convention of keeping old
deprecated fields intact until an explicit removal migration.
The field must be gated by the STORAGE_POLICY OM layout feature so a
pre-upgrade OM cannot see or emit the field.
ozone sh bucket info output must show both the new storagePolicy (when set) and
the old storageType, with storagePolicy labeled as authoritative and
storageType labeled (legacy) when both are set.
> Support setting storagePolicy via SetBucketProperty
> ---------------------------------------------------
>
> Key: HDDS-15881
> URL: https://issues.apache.org/jira/browse/HDDS-15881
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Devesh Kumar Singh
> Assignee: Devesh Kumar Singh
> Priority: Major
>
> SetBucketProperty is the RPC/request pair that changes mutable bucket
> attributes (quota, replication config, ACLs). Extend it to accept and update
> the new bucket-level storagePolicy.
> Note: policy changes are not retroactive to existing keys — an existing key
> keeps whatever tier it was written with.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]