[
https://issues.apache.org/jira/browse/SENTRY-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524021#comment-16524021
]
Hadoop QA commented on SENTRY-2281:
-----------------------------------
Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12929221/SENTRY-2281.01.patch
against master.
{color:red}Overall:{color} -1 due to 4 errors
{color:red}ERROR:{color} mvn test exited 1
{color:red}ERROR:{color} Failed:
org.apache.sentry.api.service.thrift.TestSentryServiceIntegration
{color:red}ERROR:{color} Failed:
org.apache.sentry.api.service.thrift.TestSentryServiceIntegration
{color:red}ERROR:{color} Failed:
org.apache.sentry.api.service.thrift.TestSentryServiceIntegration
Console output:
https://builds.apache.org/job/PreCommit-SENTRY-Build/3927/console
This message is automatically generated.
> 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
> Attachments: SENTRY-2281.01.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)