sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sravya Tirukkovalur (JIRA)" <>
Subject [jira] [Created] (SENTRY-334) Handle errors more user firendly in db store when objects are not present.
Date Tue, 15 Jul 2014 00:32:05 GMT
Sravya Tirukkovalur created SENTRY-334:

             Summary: Handle errors more user firendly in db store when objects are not present.
                 Key: SENTRY-334
             Project: Sentry
          Issue Type: Bug
    Affects Versions: 1.3.0
            Reporter: Sravya Tirukkovalur
             Fix For: 1.3.0

For example show role grant group <groupName> throws a stack trace if the group has
no roles granted:

0: jdbc:hive2://localhost:10000/> show role grant group admin;
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask.
Role: TListSentryRolesRequest(protocol_version:1, requestorUserName:hive, groupName:admin)
couldn't be retrieved.. Server Stacktrace: org.apache.sentry.provider.db.SentryNoSuchObjectException:
Group admin
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getMSentryRolesByGroupName(
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getTSentryRolesByGroupName(
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.list_sentry_roles_by_group(
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$list_sentry_roles_by_group.getResult(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
	at (state=08S01,code=1)

This message was sent by Atlassian JIRA

View raw message