hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9576) Make NetUtils.wrapException throw EOFException instead of wrapping it as IOException
Date Wed, 05 Jun 2013 09:58:21 GMT

    [ 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"
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/"; destination host is: "":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)

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

View raw message