You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Na Li (JIRA)" <ji...@apache.org> on 2017/06/05 22:42:12 UTC

[jira] [Commented] (SENTRY-1750) HMSFollower does not handle view update correctly

    [ https://issues.apache.org/jira/browse/SENTRY-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037792#comment-16037792 ] 

Na Li commented on SENTRY-1750:
-------------------------------

Sentry does not need to handle view explicitly. Since its path is null, a notification even for view will cause exception for the current code. Sentry-1669 has handled exception properly. so no code change for this issue.

We just need to enable TestHDFSIntegrationEnd2End.testViews and verify the tests pass.

> HMSFollower does not handle view update correctly
> -------------------------------------------------
>
>                 Key: SENTRY-1750
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1750
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>    Affects Versions: sentry-ha-redesign
>            Reporter: Na Li
>            Assignee: Na Li
>            Priority: Minor
>             Fix For: sentry-ha-redesign
>
>
> The location of a view is null, and it should be accepted by Sentry. However, when there is view update such "create view testView as select * from test" in TestHDFSIntegrationEnd2End.testViews, the location is null, and HMSFollower throws exception when processing this notification.
> The notification uses HCatEventMessage.EventType. Should we add types for view? So sentry can process view and table differently.
> The call stack of exception
> 2017-05-04 23:24:00,198 (pool-5-thread-1) [ERROR - org.apache.sentry.service.thrift.HMSFollower.run(HMSFollower.java:300)] Encounter SentryInvalidInputException|SentryInvalidHMSEventException while processing notification log
> org.apache.sentry.core.common.exception.SentryInvalidHMSEventException: Create table event has incomplete information. dbName = default, tableName = testView, location = null
> 	at org.apache.sentry.service.thrift.HMSFollower.processNotificationEvents(HMSFollower.java:415)
> 	at org.apache.sentry.service.thrift.HMSFollower.run(HMSFollower.java:287)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)



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