[ 
https://issues.apache.org/jira/browse/SENTRY-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030195#comment-16030195
 ] 

kalyan kumar kalvagadda commented on SENTRY-1773:
-------------------------------------------------

[~akolb]
When we need cleanup data, there needs to be some criteria to decides which 
data stays and which should be deleted. Here are some of the ways to cleanup.
# Always leave last "X" entries in the delta tables. This was the approach 
taken currently. Currently X=1.
** This approach has issues as we can't be really sure if data that is cleaned 
up is ever served to NN.
# Determine what can be cleanup based on update requests coming from NN.
** Server should just maintain snapshots and deltas, but it should also keep 
track of the last change-id that NN successfully processed. That way sentry 
server knows what to cleanup and what stays.



> 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)

Reply via email to