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



Thanks for the patch Colin! Left minor comments


sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/service/persistent/DelegateSentryStore.java
 (line 76)
<https://reviews.apache.org/r/49996/#comment207881>

    Not related to this patch. But, seems like get(String) can be made private 
in Activators?



sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/Fencer.java
 (line 250)
<https://reviews.apache.org/r/49996/#comment207882>

    Annotate with @VisibleForTesting as seems like this is test only thing?



sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/Activator.java
 (line 121)
<https://reviews.apache.org/r/49996/#comment207884>

    When should Activator.isActive() versus Activator.verifyActive() be used?
    
    Seems like verifyActive() is the ultimate ground truth, is there a risk in 
usage of isActive around failover?



sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestFencer.java
 (line 52)
<https://reviews.apache.org/r/49996/#comment207887>

    Nit: 
    Does it make sense to do 
    this.act = Activators.INSTANCE.createActivators(conf)
    
    rather than the following in multiple places:
    
    this.act = new Activator()
    Activators.INSTANCE.put(act)
    
    Also, shall we restrict the use of Activators purely for testing purposes?



sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestFencer.java
 (lines 101 - 102)
<https://reviews.apache.org/r/49996/#comment207891>

    close in finally{} ?



sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestFencer.java
 (lines 130 - 133)
<https://reviews.apache.org/r/49996/#comment207897>

    Nit: inside finally?


- Sravya Tirukkovalur


On July 13, 2016, 6:28 p.m., Colin McCabe wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49996/
> -----------------------------------------------------------
> 
> (Updated July 13, 2016, 6:28 p.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1399
>     https://issues.apache.org/jira/browse/SENTRY-1399
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> SENTRY-1399: Integrate Fencer with SentryStore
> 
> 
> Diffs
> -----
> 
>   
> sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/exception/SentryStandbyException.java
>  73c7e4e 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/service/persistent/DelegateSentryStore.java
>  e960dcd 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/service/persistent/SentryStoreLayer.java
>  c003965 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/Fencer.java
>  14cdde3 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
>  6e367e5 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/Activator.java
>  0b7ddf5 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestFencer.java
>  PRE-CREATION 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java
>  6e00505 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStoreImportExport.java
>  fc39658 
> 
> Diff: https://reviews.apache.org/r/49996/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin McCabe
> 
>

Reply via email to