jerqi commented on code in PR #6717:
URL: https://github.com/apache/gravitino/pull/6717#discussion_r2004772316
##########
authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java:
##########
@@ -103,10 +103,7 @@ protected RangerAuthorizationPlugin(String metalake,
Map<String, String> config)
rangerServiceName =
config.get(RangerAuthorizationProperties.RANGER_SERVICE_NAME);
rangerClient = new RangerClientExtension(rangerUrl, authType,
rangerAdminName, password);
- if (Boolean.parseBoolean(
-
config.get(RangerAuthorizationProperties.RANGER_SERVICE_CREATE_IF_ABSENT))) {
- createRangerServiceIfNecessary(config, rangerServiceName);
- }
+ createRangerServiceIfNecessary(config, rangerServiceName);
Review Comment:
I put the `if` sentence into the createRangerServiceIfNecessary method and
judge the config option and service existence.
--
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]