[
https://issues.apache.org/jira/browse/SENTRY-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060402#comment-14060402
]
SentryQA commented on SENTRY-332:
---------------------------------
Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12655498/SENTRY-332.patch
against master.
{color:red}Overall:{color} -1 due to an error
{color:red}ERROR:{color} failed to build with patch (exit code 134)
Console output:
http://bigtop01.cloudera.org:8080/job/PreCommit-SENTRY-Build/201/console
This message is automatically generated.
> A role may got empty privilege, although the role have some privileges
> ----------------------------------------------------------------------
>
> Key: SENTRY-332
> URL: https://issues.apache.org/jira/browse/SENTRY-332
> Project: Sentry
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Dapeng Sun
> Assignee: Dapeng Sun
> Fix For: 1.4.0
>
> Attachments: SENTRY-332.patch
>
>
> MSentryPrivilege is an embedded field of MSentryRole, When query a
> MSentryRole that contains MSentryPrivilege as embedded fields, the embedded
> field MSentryPrivilege may returned as null.
> For example:
> {code:borderStyle=solid}
> MSentryRole mRole = getMSentryRole(pm, roleName);
> if (mRole != null) {
> mRole.getPrivileges(); // the privileges may be null, although the role
> have privileges
> }
> {code}
> Solution:
> JDO defaults to lazy loading ,MSentryPrivilege should be eager-loading .
--
This message was sent by Atlassian JIRA
(v6.2#6252)