[
https://issues.apache.org/jira/browse/HDDS-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rakesh Radhakrishnan resolved HDDS-6613.
----------------------------------------
Resolution: Not A Problem
Since the upgrade framework has been implemented by handling EMPTY and explicit
LEGACY bucket layouts. Both will be treated as LEGACY, so this is not required
to fix.
I'm closing it, please re-open if required. Thanks!
> Do not persist LEGACY bucket layout to RocksDB
> ----------------------------------------------
>
> Key: HDDS-6613
> URL: https://issues.apache.org/jira/browse/HDDS-6613
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Manager
> Reporter: Jyotinder Singh
> Assignee: Jyotinder Singh
> Priority: Major
>
> We should not persist LEGACY bucket layout to the bucket table in RocksDB.
> This should help simplify upgrade flow in later tasks.
> We should only be persisting FSO and OBS layouts to the bucket table.
>
> {code:java}
> public class OmBucketInfoCodec implements Codec<OmBucketInfo> {
> @Override
> public byte[] toPersistedFormat(OmBucketInfo object) throws IOException {
> Preconditions
> .checkNotNull(object, "Null object can't be converted to byte
> array.");
> return object.getProtobuf().toByteArray();
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]