Yulei-Yang commented on code in PR #17424:
URL: https://github.com/apache/doris/pull/17424#discussion_r1125617875


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/RangerHiveAccessController.java:
##########
@@ -99,20 +112,20 @@ private boolean checkPrivilege(UserIdentity currentUser, 
HiveAccessType accessTy
         request.setResource(resource);
 
         RangerAccessResult result = hivePlugin.isAccessAllowed(request, 
auditHandler);
-        auditHandler.flushAudit();
 
         if (result == null) {
-            LOG.warn(String.format("Error getting authorizer result, please 
check your ranger config. Request: %s",
-                    request));
+            LOG.warn(String.format("Error getting authorizer result, please 
check your ranger config. Make sure "
+                    + "ranger policy engine is initialized. Request: %s", 
request));

Review Comment:
   fixed



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to