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 2014/10/20 21:40:34 UTC

[jira] [Commented] (HADOOP-11212) NetUtils.wrapException to handle SocketException explicitly

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

Steve Loughran commented on HADOOP-11212:
-----------------------------------------

Stack when trying to talk to a local-subnet-VM that's down. 
{code}
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.766 sec <<< FAILURE! - in org.apache.slider.funtest.lifecycle.AgentClusterLifecycleIT
org.apache.slider.funtest.lifecycle.AgentClusterLifecycleIT  Time elapsed: 22.765 sec  <<< ERROR!
java.io.IOException: Failed on local exception: java.net.SocketException: Host is down; Host Details : local host is: "stevel-763.local/240.0.0.1"; destination host is: "nn.example.com":8020; 
	at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:764)
	at org.apache.hadoop.ipc.Client.call(Client.java:1472)
	at org.apache.hadoop.ipc.Client.call(Client.java:1399)
	at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
	at com.sun.proxy.$Proxy22.getFileInfo(Unknown Source)
	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:752)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
	at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
	at com.sun.proxy.$Proxy23.getFileInfo(Unknown Source)
	at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1957)
	at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1118)
	at org.apache.hadoop.hdfs.DistributedFileSystem$18.doCall(DistributedFileSystem.java:1114)
	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1114)
	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1400)
	at org.apache.slider.funtest.framework.FileUploader.mkHomeDir(FileUploader.groovy:123)
	at org.apache.slider.funtest.framework.FileUploader$mkHomeDir.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
	at org.apache.slider.funtest.framework.AgentCommandTestBase.setupAgent(AgentCommandTestBase.groovy:105)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
{code]

> NetUtils.wrapException to handle SocketException explicitly
> -----------------------------------------------------------
>
>                 Key: HADOOP-11212
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11212
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 3.0.0
>            Reporter: Steve Loughran
>
> the {{NetUtil.wrapException()} method doesn't catch {{SocketException}}, so it is wrapped with an IOE —this loses information, and stops any extra diags /wiki links being added



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)