You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2013/06/05 11:58:21 UTC

[jira] [Commented] (HADOOP-9576) Make NetUtils.wrapException throw EOFException instead of wrapping it as IOException

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

Steve Loughran commented on HADOOP-9576:
----------------------------------------

I've seen this, and yes, it should be handled and marked as "connection torn town"
{code}
2013-06-05 10:51:36,776 [AMRM Heartbeater thread] ERROR client.AMRMClientAsync (AMRMClientAsync.java:run(287)) - IO exception on heartbeat
java.io.IOException: Failed on local exception: java.io.EOFException; Host Details : local host is: "stevel-2.local/192.168.1.85"; destination host is: "192.168.1.85":62370; 
	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}

We'll need a corresponding Wiki page along with the code patch
                
> 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: Jian He
>
> 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