Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.0
Description
DefaultSentryAccessController.dropRole logs error message as "Error occurred when Sentry client creating role: "
It is confusing, and could waster engineering time to debug such inconsistency. One example is in hive log, we see
org.apache.hadoop.hive.ql.exec.SentryFilterDDLTask. Error occurred when Sentry client creating role: Role :TDropSentryRoleRequest(protocol_version:2, requestorUserName:hive, roleName:hbase_admin) doesn't exist. Server Stacktrace: org.apache.sentry.core.common.exception.SentryNoSuchObjectException: Role hbase_admin doesn't exist
at org.apache.sentry.provider.db.service.persistent.SentryStore.noSuchRole(SentryStore.java:3695)
at org.apache.sentry.provider.db.service.persistent.SentryStore.dropSentryRoleCore(SentryStore.java:1249)