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

Sravya Tirukkovalur updated SENTRY-1181:
----------------------------------------
    Description: If processing of update on NN takes more than the cache 
interval time(default:30 secs), it is possible that two updates will be 
processed parallely leading to unexpected behavior. We should instead lock the 
processing of updates so that we ensure they happen sequentially. Also while 
doing so, we should add a flag to make sure we should never go into stale mode 
while processing an update.  (was: If processing of update on NN takes more 
than the cache interval time(default:30 secs), it is possible that two updates 
will be processed parallely leading to unexpected behavior. We should instead 
lock the processing of updates so that we ensure they happen sequentially. Also 
while doing so, we should add a flag like "processingUpdate", which if true, we 
should never go into stale mode even after threshold time.)

> Lock SentryAuthorizationInfo#processUpdates
> -------------------------------------------
>
>                 Key: SENTRY-1181
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1181
>             Project: Sentry
>          Issue Type: Bug
>          Components: Hdfs Plugin
>    Affects Versions: 1.7.0
>            Reporter: Sravya Tirukkovalur
>            Assignee: Sravya Tirukkovalur
>         Attachments: SENTRY-1181.1.patch
>
>
> If processing of update on NN takes more than the cache interval 
> time(default:30 secs), it is possible that two updates will be processed 
> parallely leading to unexpected behavior. We should instead lock the 
> processing of updates so that we ensure they happen sequentially. Also while 
> doing so, we should add a flag to make sure we should never go into stale 
> mode while processing an update.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to