JyotinderSingh commented on a change in pull request #2707:
URL: https://github.com/apache/ozone/pull/2707#discussion_r725304471
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
##########
@@ -453,6 +457,18 @@ private OzoneManager(OzoneConfiguration conf,
StartupOption startupOption)
OMConfigKeys.OZONE_OM_RATIS_ENABLE_KEY,
OMConfigKeys.OZONE_OM_RATIS_ENABLE_DEFAULT);
+ this.defaultBucketLayout =
+ configuration.getTrimmed(OZONE_DEFAULT_BUCKET_LAYOUT,
+ OZONE_DEFAULT_BUCKET_LAYOUT_DEFAULT);
+ // Make sure defaultBucketLayout is set to a valid value
+ if (!defaultBucketLayout.equals(
+ BucketLayout.FILE_SYSTEM_OPTIMIZED.name()) &&
+ !defaultBucketLayout.equals(BucketLayout.OBJECT_STORE.name())
+ ) {
+ throw new IllegalArgumentException(
Review comment:
Sure, I've replaced this with ConfigurationException
--
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]