You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Jyotinder Singh (Jira)" <ji...@apache.org> on 2022/04/20 07:39:00 UTC

[jira] [Created] (HDDS-6613) Do not persist LEGACY bucket layout to RocksDB

Jyotinder Singh created HDDS-6613:
-------------------------------------

             Summary: 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


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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org