You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Na Li (JIRA)" <ji...@apache.org> on 2017/12/06 22:11:00 UTC

[jira] [Created] (SENTRY-2092) Drop Role log message shows "Creating role"

Na Li created SENTRY-2092:
-----------------------------

             Summary: 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


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)