[ 
https://issues.apache.org/jira/browse/SENTRY-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergio Peña updated SENTRY-2281:
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.1.0
           Status: Resolved  (was: Patch Available)

> list_privileges_by_user() fails with a JDODetachedFieldAccessException
> ----------------------------------------------------------------------
>
>                 Key: SENTRY-2281
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2281
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Sentry
>    Affects Versions: 2.1.0
>            Reporter: Sergio Peña
>            Assignee: Arjun Mishra
>            Priority: Major
>             Fix For: 2.1.0
>
>         Attachments: SENTRY-2281.01.patch, SENTRY-2281.02.patch
>
>
> {noformat}
> Caused by: java.lang.RuntimeException: Unknown error for request: 
> TListSentryPrivilegesByAuthRequest(protocol_version:2, 
> requestorUserName:ubuntu, 
> authorizableSet:[TSentryAuthorizable(server:localhost, db:default, 
> table:t1)], roleSet:TSentryActiveRoleSet(all:true, roles:[]), 
> users:[ubuntu]), message: You have just attempted to access field "users" yet 
> this field was not detached when you detached the object. Either dont access 
> this field, or detach it when detaching the object.. Server Stacktrace: 
> javax.jdo.JDODetachedFieldAccessException: You have just attempted to access 
> field "users" yet this field was not detached when you detached the object. 
> Either dont access this field, or detach it when detaching the object.
>        at 
> org.apache.sentry.provider.db.service.model.MSentryPrivilege.dnGetusers(MSentryPrivilege.java)
>        at 
> org.apache.sentry.provider.db.service.model.MSentryPrivilege.getUsers(MSentryPrivilege.java:186)
>        at 
> org.apache.sentry.provider.db.service.persistent.SentryStore.listSentryPrivilegesByAuthorizableForUser(SentryStore.java:2118)
>        at 
> org.apache.sentry.api.service.thrift.SentryPolicyStoreProcessor.list_sentry_privileges_by_authorizable(SentryPolicyStoreProcessor.java:1166)
>        at 
> org.apache.sentry.api.service.thrift.SentryPolicyService$Processor$list_sentry_privileges_by_authorizable.getResult(SentryPolicyService.java:1677)
>        at 
> org.apache.sentry.api.service.thrift.SentryPolicyService$Processor$list_sentry_privileges_by_authorizable.getResult(SentryPolicyService.java:1662)
>        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
>        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
>        at 
> org.apache.sentry.api.service.thrift.SentryProcessorWrapper.process(SentryProcessorWrapper.java:36)
>        at 
> org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
>        at 
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
>        at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to