[
https://issues.apache.org/jira/browse/SENTRY-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16153940#comment-16153940
]
Sergio Peña commented on SENTRY-1919:
-------------------------------------
Making the calls synchronized may cause timeouts to the NN waiting for an
update. Let's say a full update takes 10min, then NN-1 will last 10min, but
NN-2 will wait for 20min (10+10). I think I can just set a global atomic value
to prevent sending an update and send an empty list in case the update is not
available for requests.
One question, what disadvantage do we have if we serialize the access to the
path deltas updates?
> Sentry should prevent two snapshots from being sent to HDFS
> -----------------------------------------------------------
>
> Key: SENTRY-1919
> URL: https://issues.apache.org/jira/browse/SENTRY-1919
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: 2.0.0
> Reporter: Alexander Kolbasov
> Assignee: Sergio Peña
>
> When HDFS sync and HDFS HA is enabled it could be possible that two NameNodes
> will both ask for the full snapshot at the same time. This can double the
> size of memory needed to serve snapshot and should be prevented.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)