[ 
https://issues.apache.org/jira/browse/HADOOP-14959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16329426#comment-16329426
 ] 

Bharat Viswanadham commented on HADOOP-14959:
---------------------------------------------

Hi [~ajayydv]

Thanks for your patch.

UGI class throws KerberosAuthException, Which does not match with any of the if 
conditions in NetUtils.wrapException,  and it will go to else and we throw 
IOException wrapping original Exception. I think in this case we should throw 
original exception which is KerberosAuthException.

 

You can modify the NetUtilsWrapException to be generic to handle such scenarios.

> DelegationTokenAuthenticator.authenticate() to wrap network exceptions
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-14959
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14959
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: net, security
>    Affects Versions: 2.8.1
>            Reporter: Steve Loughran
>            Assignee: Ajay Kumar
>            Priority: Minor
>         Attachments: HADOOP-14959.001.patch, HADOOP-14959.002.patch
>
>
> network errors raised in {{DelegationTokenAuthenticator.authenticate()}} 
> aren't being wrapped, so only return the usual limited-value java.net error 
> text. using {{NetUtils.wrapException()}} can address that



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to