[ https://issues.apache.org/jira/browse/SENTRY-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Na Li updated SENTRY-2092: -------------------------- Attachment: SENTRY-2092.001.patch > Drop Role log message shows "Creating role" > ------------------------------------------- > > Key: SENTRY-2092 > URL: https://issues.apache.org/jira/browse/SENTRY-2092 > Project: Sentry > Issue Type: Bug > Components: Sentry > Affects Versions: 2.1.0 > Reporter: Na Li > Assignee: Na Li > Attachments: SENTRY-2092.001.patch > > > 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 {color:red}creating role{color}: Role > :{color:red}TDropSentryRoleRequest{color}(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) -- This message was sent by Atlassian JIRA (v6.4.14#64029)