[ 
https://issues.apache.org/jira/browse/HADOOP-9576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-9576:
-----------------------------------

    Target Version/s: 2.1.0-beta
              Status: Patch Available  (was: Open)

Wiki Entry is at [https://wiki.apache.org/hadoop/EOFException] - I had to cover 
FileSystem EOFs too, as well as things like HTTP channels shutting down early

This is what the stack trace looks like
{code}
java.io.EOFException: EOFException from  local host is: 
"stevel-2.local/192.168.1.85"; destination host is: "192.168.1.85":63514; 
java.io.EOFException; For more details see:  
http://wiki.apache.org/hadoop/EOFException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:790)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:764)
        at org.apache.hadoop.ipc.Client.call(Client.java:1307)
        at org.apache.hadoop.ipc.Client.call(Client.java:1255)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:204)
        at com.sun.proxy.$Proxy9.allocate(Unknown Source)
        at 
org.apache.hadoop.yarn.api.impl.pb.client.AMRMProtocolPBClientImpl.allocate(AMRMProtocolPBClientImpl.java:75)
        at 
org.apache.hadoop.yarn.client.AMRMClientImpl.allocate(AMRMClientImpl.java:234)
        at 
org.apache.hadoop.yarn.client.AMRMClientAsync$HeartbeatThread.run(AMRMClientAsync.java:279)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:375)
        at 
org.apache.hadoop.ipc.Client$Connection.receiveRpcResponse(Client.java:948)
        at org.apache.hadoop.ipc.Client$Connection.run(Client.java:845)
{code}


                
> Make NetUtils.wrapException throw EOFException instead of wrapping it as 
> IOException
> ------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9576
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9576
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Jian He
>            Assignee: Steve Loughran
>         Attachments: HADOOP-9576-001.patch
>
>
> In case of EOFException, NetUtils is now wrapping it as IOException, we may 
> want to throw EOFException as it is, since EOFException can happen when 
> connection is lost in the middle, the client may want to explicitly handle 
> such exception

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to