> On Dec. 6, 2012, 7:34 p.m., Brock Noland wrote:
> > Looks good!  A couple more comments/questions below.  Also, it looks like 
> > we could unit test a fair amount of  HBaseSinkSecurityManager even if we 
> > cannot unit test the actual kerberos login portion at this time? Do you 
> > think that is possible?

I don't see much value in adding unit testing in the HBaseSinkSecurityManager, 
since we cannot really test the kerberos part. All of the code in that method 
is already unit-tested by HBase. But please see 
https://issues.apache.org/jira/browse/FLUME-1737. If you have ideas on 
unit-testing without kerberos, please add to that jira.


> On Dec. 6, 2012, 7:34 p.m., Brock Noland wrote:
> > flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSinkSecurityManager.java,
> >  line 67
> > <https://reviews.apache.org/r/8365/diff/3/?file=234950#file234950line67>
> >
> >     This method will only be called when security is enabled correct?
> >     
> >     Assuming that is true do we want to return null from this method 
> > because the subsequent call to hbase will fail with an error message 
> > anyway, correct?

We should throw instead of returning null so that the sink does not start up.


- Hari


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


On Dec. 6, 2012, 7:22 p.m., Hari Shreedharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/8365/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2012, 7:22 p.m.)
> 
> 
> Review request for Flume.
> 
> 
> Description
> -------
> 
> Did some basic testing against secure and non-secure hbase. I will update 
> this patch as I test. This is an initial patch only, changes are likely.
> 
> 
> This addresses bug FLUME-1726.
>     https://issues.apache.org/jira/browse/FLUME-1726
> 
> 
> Diffs
> -----
> 
>   flume-ng-sinks/flume-ng-hbase-sink/pom.xml 25422e1 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java
>  021ecd0 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSinkConfigurationConstants.java
>  62f7097 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSinkSecurityManager.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/8365/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Hari Shreedharan
> 
>

Reply via email to