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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to