Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
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.
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(); }