[
https://issues.apache.org/jira/browse/SENTRY-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151493#comment-14151493
]
Lenni Kuff commented on SENTRY-476:
-----------------------------------
Ah, got it. I thought you were suggesting this check be added in the Sentry
Service; I didn't realize you were thinking of adding it in the Hive binding
layer. That sounds like the correct place to add the check, thanks for
clarifying.
As far as my comment on the how this is racy - I was just pointing out that it
is possible the target object is dropped immediately after you check if it
exists, but before you have actually persisted the grant. The privilege would
still be created even though the object no longer exists.
> SENTRY should have the ability to check the database and table in metastore
> ---------------------------------------------------------------------------
>
> Key: SENTRY-476
> URL: https://issues.apache.org/jira/browse/SENTRY-476
> Project: Sentry
> Issue Type: Improvement
> Reporter: Dapeng Sun
>
> Currently when sentry grant privilege to object, such as database, table, it
> doesn't do the check whether if the object is existed in HIVE, we should add
> a configuration property, if the property is enabled, sentry will connect to
> HIVE Metastore and check if the object is exist or not.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)