smengcl commented on code in PR #3397:
URL: https://github.com/apache/ozone/pull/3397#discussion_r870797506
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -534,6 +542,52 @@ private OzoneManager(OzoneConfiguration conf,
StartupOption startupOption)
blockTokenMgr = createBlockTokenSecretManager(configuration);
}
+ // Get S3 multi-tenancy enabled flag
+ this.isS3MultiTenancyEnabled = conf.getBoolean(
+ OZONE_OM_MULTITENANCY_ENABLED, OZONE_OM_MULTITENANCY_ENABLED_DEFAULT);
+
+ boolean devSkipMTCheck = conf.getBoolean(OZONE_OM_TENANT_DEV_SKIP_RANGER,
+ false);
+
+ if (isS3MultiTenancyEnabled && !devSkipMTCheck) {
+ // Validate required configs to enable S3 multi-tenancy
Review Comment:
OK. will throw RuntimeException on config validation failure like
https://github.com/apache/ozone/blob/76e6ef4170422c61a1c51b7edf51b7499aec299b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java#L532-L536
--
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]