tanvipenumudy opened a new pull request, #3477:
URL: https://github.com/apache/ozone/pull/3477

   ## What changes were proposed in this pull request?
   
   After the post finalization, the `LEGACY` layout specified by the client is 
overridden by the configured value of `ozone.default.bucket.layout`.
    
   The proposal is to modify the behavior on the server-side to only use the 
`ozone.default.bucket.layout` configuration if the client has not specified any 
bucket layout in the protobuf message.
   
   If the client sends the `LEGACY` bucket layout type, then the OM server-side 
will not override it with the `ozone.default.bucket.layout` configuration 
value. This way a client has the flexibility to create a `LEGACY` bucket 
explicitly if it doesn't want the server configured bucket layout type.
    
   Here we can use the `hasBucketLayout` protobuf method to check if the field 
is specified or not.
   
   Reference: [Discussion 
here](https://github.com/apache/ozone/pull/3411#issuecomment-1126550908)
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6683
   
   ## How was this patch tested?
   
   Added integration tests.
   


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