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

Drop Role log message shows "Creating role"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Sentry

    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

        1. SENTRY-2092.001.patch
          2 kB
          Na Li
        2. SENTRY-2092.002.patch
          3 kB
          Na Li

        Activity

          People

            linaataustin Na Li
            linaataustin Na Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: