[
https://issues.apache.org/jira/browse/SENTRY-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227324#comment-15227324
]
Sravya Tirukkovalur commented on SENTRY-1181:
---------------------------------------------
Note that UpdateableAuthzPaths#updatePartial is itself synchronized using a
lock, but UpdateableAuthzPaths#updateFull is not. And
SentryAuthorizationInfo#processUpdates which calls updatePartital and
updateFull is not.
> 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
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)