[
https://issues.apache.org/jira/browse/SENTRY-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036290#comment-16036290
]
Na Li commented on SENTRY-1773:
-------------------------------
" How many deltas can be generated in 1/2 seconds?"
It depends on the user activity, and therefore not reliable.
The most reliable way to delete entries without saving NN state is to delete
change entries based on time. For example, it is most likely the entries are
delivered to NN if the entry is older than (now - twice of NN query interval).
To make the query fast in SentryStore.purgeDeltaChangeTableCore(), we need to
index the field "createTimeMs".
If we don't want to index "createTimeMs", we can track the largest change_ID
that is older than (next purge time - twice of NN query interval) for perm
and path in memory. When purging the change entries, use that ID as filter to
delete all entries less than or equal to this change_ID
> Delta change cleaner should leave way more then a single entry intact
> ---------------------------------------------------------------------
>
> Key: SENTRY-1773
> URL: https://issues.apache.org/jira/browse/SENTRY-1773
> Project: Sentry
> Issue Type: Sub-task
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Alexander Kolbasov
> Assignee: kalyan kumar kalvagadda
> Fix For: sentry-ha-redesign
>
>
> The delta cleaner removes deltas thus causing NN full update unnecessary.
> I think it should keep more then 1 delta.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)