You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Vaibhav Gumashta <vg...@hortonworks.com> on 2014/03/12 11:28:06 UTC

Re: Review Request 17437: doAs with plain sasl auth should be session aware

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



service/src/java/org/apache/hive/service/auth/TSetIpAddressProcessor.java
<https://reviews.apache.org/r/17437/#comment68098>

    I think we should access thread locals through the SessionManager.



service/src/java/org/apache/hive/service/cli/session/SessionManager.java
<https://reviews.apache.org/r/17437/#comment68097>

    I think accessing thread locals through SessionManager is a good idea. A number of other patches seem to rely on this.


- Vaibhav Gumashta


On Jan. 28, 2014, 1:21 a.m., Navis Ryu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/17437/
> -----------------------------------------------------------
> 
> (Updated Jan. 28, 2014, 1:21 a.m.)
> 
> 
> Review request for hive.
> 
> 
> Bugs: HIVE-6312
>     https://issues.apache.org/jira/browse/HIVE-6312
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> TUGIContainingProcessor creates new Subject for each invocation which induces FileSystem leakage when cache is enable(true by default).
> 
> 
> Diffs
> -----
> 
>   service/src/java/org/apache/hive/service/auth/PlainSaslHelper.java 15b1675 
>   service/src/java/org/apache/hive/service/auth/TSetIpAddressProcessor.java 0bf34ce 
>   service/src/java/org/apache/hive/service/cli/session/HiveSession.java c8fb8ec 
>   service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java PRE-CREATION 
>   service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java 445c858 
>   service/src/java/org/apache/hive/service/cli/session/HiveSessionProxy.java 76f18a9 
>   service/src/java/org/apache/hive/service/cli/session/SessionManager.java bfe0e7b 
>   service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java b5a6138 
>   service/src/test/org/apache/hive/service/auth/TestPlainSaslHelper.java 8fa4afd 
> 
> Diff: https://reviews.apache.org/r/17437/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Navis Ryu
> 
>