JyotinderSingh commented on pull request #2730:
URL: https://github.com/apache/ozone/pull/2730#issuecomment-964095727


   Mentioning here for reference: I am adding the client side validation back 
to the patch which will throw an exception if OFS encounters a bucket with OBS 
layout. This requires some workarounds in some of the tests where we need 
LEGACY bucket layouts (we disallow that operation directly - [layout defaults 
to OBS if client tries to create a LEGACY 
bucket](https://github.com/apache/ozone/blob/4c2181ff42be3d6b7dbec4f0c3da549d89e12fc0/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java#L145)).
   
   To obtain a LEGACY bucket we set the following config in the 
MiniOzoneCluster:
   ```
   conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT, 
BucketLayout.LEGACY.name());
   ```


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