-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62409/#review185707
-----------------------------------------------------------




sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
Lines 2849 (patched)
<https://reviews.apache.org/r/62409/#comment262016>

    Can we change the name to beforeAndIncludeSnapshotId or similar name? since 
implies include and after, which is opposite to what you want to remove.



sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
Lines 2860 (patched)
<https://reviews.apache.org/r/62409/#comment262017>

    replace "since" with "older than or equal to"



sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HMSFollower.java
Lines 337 (patched)
<https://reviews.apache.org/r/62409/#comment262018>

    how about not reducing the newSnapshotId by one? In this way,you can remove 
all snapshot with snapshotId less than this value (instead of <=). And the 
input for deleteFullPathsImageSince() can be named as "newSnapshotId".
    
    The whole logic will be much easier to understand


- Na Li


On Sept. 19, 2017, 2:51 p.m., Sergio Pena wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62409/
> -----------------------------------------------------------
> 
> (Updated Sept. 19, 2017, 2:51 p.m.)
> 
> 
> Review request for sentry, Alexander Kolbasov, kalyan kumar kalvagadda, and 
> Na Li.
> 
> 
> Bugs: sentry-1949
>     https://issues.apache.org/jira/browse/sentry-1949
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Added a new method on SentryStore to delete HMS snapshots since a specific 
> ID. This new method is called by the HMSFollower when a new snapshot is 
> created.
> 
> 
> Diffs
> -----
> 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
>  9a37ac8fe572a98b3fb4cba127bcb1716bd8f017 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HMSFollower.java
>  31fd4597dad6b02bb5d8b9f944a488f6f78d7d79 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java
>  cf83e7796fd5bc22c76cba6096b0a821e82b87a7 
> 
> 
> Diff: https://reviews.apache.org/r/62409/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>

Reply via email to