You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "guoquan (JIRA)" <ji...@apache.org> on 2015/03/18 06:22:40 UTC
[jira] [Updated] (SENTRY-573) Fix NPE caused when rename op is
applied on authzObject with no explicit permissions
[ https://issues.apache.org/jira/browse/SENTRY-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
guoquan updated SENTRY-573:
---------------------------
Fix Version/s: 1.5.0
> Fix NPE caused when rename op is applied on authzObject with no explicit permissions
> ------------------------------------------------------------------------------------
>
> Key: SENTRY-573
> URL: https://issues.apache.org/jira/browse/SENTRY-573
> Project: Sentry
> Issue Type: Bug
> Reporter: Arun Suresh
> Assignee: Arun Suresh
> Labels: sentry-hdfs
> Fix For: 1.5.0
>
> Attachments: SENTRY-573.1.patch
>
>
> Steps to reproduce :
> 1) Create some role 't1_admin'
> 2) Grant ALL on database 'default' to role 't1_admin'
> 3) Create table 't1' in 'default' db
> 4) Rename table 't1' to 't2'
> 5) Observe NPE in Namenode logs :
> {noformat}
> java.lang.NullPointerException
> at org.apache.sentry.hdfs.UpdateableAuthzPermissions.applyPrivilegeUpdates(UpdateableAuthzPermissions.java:130)
> at org.apache.sentry.hdfs.UpdateableAuthzPermissions.applyPartialUpdate(UpdateableAuthzPermissions.java:89)
> at org.apache.sentry.hdfs.UpdateableAuthzPermissions.updatePartial(UpdateableAuthzPermissions.java:73)
> at org.apache.sentry.hdfs.SentryAuthorizationInfo.processUpdates(SentryAuthorizationInfo.java:167)
> at org.apache.sentry.hdfs.SentryAuthorizationInfo.update(SentryAuthorizationInfo.java:133)
> at org.apache.sentry.hdfs.SentryAuthorizationInfo.run(SentryAuthorizationInfo.java:183)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)