Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-2092

Drop Role log message shows "Creating role"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: Sentry
    • Labels:

      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)

        Attachments

          Activity

            People

            • Assignee:
              LinaAtAustin Na Li
              Reporter:
              LinaAtAustin Na Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: