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

Na Li commented on SENTRY-2477:
-------------------------------

[~arjunmishra13] If the latest change ID is 4, and NN request number is 5, we 
should not do anything.

The sequence of events are
1) NN got change with max change ID of 4 when the latest change ID at sentry 
server is 4.
2) When there is no change between NN got 4 and NN request changes in next 
round, the latest change ID is still 4 at sentry server. 
3) So when NN requests 5 (it always uses max change ID saved locally + 1), 
sentry server finds there is no new changes, and just return.

If NN requests more than 5, then sentry server should return full snapshot. Can 
you describe more specific scenario you want sentry server to send back full 
snapshot?

> When requesting for deltas check if nn seq num is 1 more than latest sequence 
> num
> ---------------------------------------------------------------------------------
>
>                 Key: SENTRY-2477
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2477
>             Project: Sentry
>          Issue Type: Bug
>            Reporter: Arjun Mishra
>            Assignee: Arjun Mishra
>            Priority: Major
>         Attachments: SENTRY-2477.01.patch
>
>
> If NN seq number and latest sentry sequence number is larger than 1 we need 
> to request a full update



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to