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

Steve Loughran updated HADOOP-4262:
-----------------------------------

    Fix Version/s: 0.20.0
           Status: Patch Available  (was: Open)

This patch changes the failure message to be the classname if there is no 
message in the exception itself:
[sf-startdaemon-debug] Caused by: java.io.IOException: Call to 
localhost/127.0.0.1:8012 failed on local exception: java.io.EOFException
[sf-startdaemon-debug]  at org.apache.hadoop.ipc.Client.call(Client.java:699)
[sf-startdaemon-debug]  at 
org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
[sf-startdaemon-debug]  at 
org.apache.hadoop.mapred.$Proxy6.getJobProfile(Unknown Source)
[sf-startdaemon-debug] 08/09/24 15:43:13 [IPC Server handler 6 on 8012] INFO 
ipc.Server : IPC Server handler 6 on 8012: exiting
[sf-startdaemon-debug] 08/09/24 15:43:13 [IPC Server handler 1 on 8012] INFO 
ipc.Server : IPC Server handler 1 on 8012: exiting
[sf-startdaemon-debug] 08/09/24 15:43:13 [IPC Server handler 0 on 8012] INFO 
ipc.Server : IPC Server handler 0 on 8012: exiting
[sf-startdaemon-debug]  at 
org.apache.hadoop.mapred.JobClient$NetworkedJob.<init>(JobClient.java:179)
[sf-startdaemon-debug]  at 
org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:828)
[sf-startdaemon-debug]  at 
org.smartfrog.services.hadoop.components.submitter.SubmitterImpl.sfStart(SubmitterImpl.java:104)
[sf-startdaemon-debug]  ... 11 more
[sf-startdaemon-debug] Caused by: java.io.EOFException
[sf-startdaemon-debug]  at 
java.io.DataInputStream.readInt(DataInputStream.java:375)
[sf-startdaemon-debug]  at 
org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:493)
[sf-startdaemon-debug]  at 
org.apache.hadoop.ipc.Client$Connection.run(Client.java:438)

There's no test. It may make sense to extract this exception-to-text operation 
into a utils class where it could be reused and tested trivially.

> message generated when the client exception has a null message is not useful
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-4262
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4262
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: ipc
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Steve Loughran
>            Priority: Minor
>             Fix For: 0.20.0
>
>         Attachments: hadoop-4262.patch
>
>
> This was created by HADOOP-3844; if the exception doesn't have a meaningful 
> message, the output isn't that informative :
> java.io.IOException: Call to localhost/127.0.0.1:8012 failed on local 
> exception: null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to