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

Alexander Kolbasov updated SENTRY-1783:
---------------------------------------
       Resolution: Fixed
    Fix Version/s: sentry-ha-redesign
                   1.8.0
           Status: Resolved  (was: Patch Available)

> alterSentryRoleGrantPrivilegeCore does more persistence work than required
> --------------------------------------------------------------------------
>
>                 Key: SENTRY-1783
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1783
>             Project: Sentry
>          Issue Type: Bug
>          Components: sentrystore
>    Affects Versions: 1.8.0, sentry-ha-redesign
>            Reporter: Alexander Kolbasov
>            Assignee: Alexander Kolbasov
>             Fix For: 1.8.0, sentry-ha-redesign
>
>         Attachments: SENTRY-1783.001.patch
>
>
> In the end of alterSentryRoleGrantPrivilegeCore() there is the following code:
> {code}
> mPrivilege.appendRole(mRole);
> pm.makePersistent(mRole);
> pm.makePersistent(mPrivilege);
> {code}
> I think the second makePersistent call isn't needed and can only cause 
> troubles (extra potential for deadlock). When the role is made persistent, 
> the associated privilege should be updated as well.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to