[
https://issues.apache.org/jira/browse/HADOOP-10941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14087691#comment-14087691
]
Daryn Sharp commented on HADOOP-10941:
--------------------------------------
[~benoyantony], you want to take a look at this.
{code}
2014-08-06 01:58:16,423 INFO ipc.Server (Server.java:doRead(762)) - Socket
Reader #1 for port 56888: readAndProcess from client 127.0.0.1 threw exception
[java.lang.NullPointerException]
java.lang.NullPointerException
at
org.apache.hadoop.security.authorize.DefaultImpersonationProvider.authorize(DefaultImpersonationProvider.java:126)
at
org.apache.hadoop.security.authorize.ProxyUsers.authorize(ProxyUsers.java:102)
at
org.apache.hadoop.ipc.Server$Connection.authorizeConnection(Server.java:1986)
at
org.apache.hadoop.ipc.Server$Connection.processConnectionContext(Server.java:1749)
at
org.apache.hadoop.ipc.Server$Connection.processRpcOutOfBandRequest(Server.java:1956)
at
org.apache.hadoop.ipc.Server$Connection.processOneRpc(Server.java:1837)
at
org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1580)
at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:753)
at
org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:627)
at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:598)
java.io.IOException: Failed on local exception: java.io.EOFException; Host
Details : local host is: "java.net.UnknownHostException: asf901.ygridcore.net:
asf901.ygridcore.net"; destination host is: "localhost":56888;
{code}
It was uncovered by unit test failures in HADOOP-10940 due to the test server
address being unresolvable.
> Proxy user verification NPEs if remote host is unresolvable
> -----------------------------------------------------------
>
> Key: HADOOP-10941
> URL: https://issues.apache.org/jira/browse/HADOOP-10941
> Project: Hadoop Common
> Issue Type: Bug
> Components: ipc, security
> Affects Versions: 3.0.0, 2.5.0
> Reporter: Daryn Sharp
> Priority: Critical
>
> A null is passed to the impersonation providers for the remote address if it
> is unresolvable. {{DefaultImpersationProvider}} will NPE, ipc will close the
> connection immediately (correct behavior for such unexpected exceptions),
> client fails on {{EOFException}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)