rakeshadr commented on PR #3296:
URL: https://github.com/apache/ozone/pull/3296#issuecomment-1097786239

   @JyotinderSingh Adding one more point to the above, no need to persist 
LEGACY layout in the OM DB. Only persist OBS or FSO layouts. Please feel free 
to create a separate task if it requires more changes.
   
   ```
   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();
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to