> On Feb. 17, 2017, 5:44 p.m., Alexander Kolbasov wrote:
> > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/MSentryChange.java,
> >  line 23
> > <https://reviews.apache.org/r/56720/diff/3/?file=1639882#file1639882line23>
> >
> >     Nit - since this is empty, should we use empty interface instead?

Done.


> On Feb. 17, 2017, 5:44 p.m., Alexander Kolbasov wrote:
> > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java,
> >  line 480
> > <https://reviews.apache.org/r/56720/diff/3/?file=1639885#file1639885line480>
> >
> >     It would be nice to know what of the two calls caused exception - may 
> > be it is better to trap it inside the purgeDeltaChangeTableCore() then we 
> > can log class name that caused trouble.

The statements in purgeDeltaChangeTableCore do not raise any Exception by 
itself. The `Exception` is thrown by `tm.executeTransaction(...)`. 

I added more logs after each time `purgeDeltaChangeTableCore()` been called, so 
that the progress can be traced.


> On Feb. 17, 2017, 5:44 p.m., Alexander Kolbasov wrote:
> > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java,
> >  line 428
> > <https://reviews.apache.org/r/56720/diff/3/?file=1639885#file1639885line428>
> >
> >     This seems to be test-only function to cleanup database between tests, 
> > so most likely this should stay.

Did you mean the change records in the db should stay, or these two statements?


- Lei


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


On Feb. 17, 2017, 5:26 p.m., Lei Xu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56720/
> -----------------------------------------------------------
> 
> (Updated Feb. 17, 2017, 5:26 p.m.)
> 
> 
> Review request for sentry, Alexander Kolbasov and Hao Hao.
> 
> 
> Bugs: SENTRY-1611
>     https://issues.apache.org/jira/browse/SENTRY-1611
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Provide a background service to periodically purge path and permission delta 
> change tables.
> 
> 
> Diffs
> -----
> 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/MSentryChange.java
>  PRE-CREATION 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/MSentryPathChange.java
>  952b11f4e81426ec51c0ad6131ad579ba5e3383e 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/MSentryPermChange.java
>  3662bfdebd1a4e2172ab83bd8c8e60ccf21b55b9 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
>  4cc123fd0de05a055b4276d213eafc0eb070213d 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
>  e10ddfd0372c985e5a8bd6d5b3ca07d5cb618a68 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java
>  dfaac1555fe729efab3f8fdccb914978001fee56 
> 
> Diff: https://reviews.apache.org/r/56720/diff/
> 
> 
> Testing
> -------
> 
> Run `mvn test -Dtest=TestSentryStore`
> 
> 
> Thanks,
> 
> Lei Xu
> 
>

Reply via email to