You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Siddharth Seth (JIRA)" <ji...@apache.org> on 2014/04/24 01:16:17 UTC

[jira] [Commented] (TEZ-1082) reading errorstream in Fetcher throws NPE (when fetcher timesout to establish a connection)

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

Siddharth Seth commented on TEZ-1082:
-------------------------------------

+1. Looks good.

> reading errorstream in Fetcher throws NPE (when fetcher timesout to establish a connection)
> -------------------------------------------------------------------------------------------
>
>                 Key: TEZ-1082
>                 URL: https://issues.apache.org/jira/browse/TEZ-1082
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Rajesh Balamohan
>            Assignee: Rajesh Balamohan
>         Attachments: TEZ-1082-v1.patch
>
>
> In case of connection timeout, fetcher throws NPE in reading the error stream.  
> >>
> Caused by: java.lang.NullPointerException
> 	at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:78)
> 	at org.apache.tez.runtime.library.common.shuffle.impl.Fetcher.readErrorStream(Fetcher.java:436)
> 	at org.apache.tez.runtime.library.common.shuffle.impl.Fetcher.copyFromHost(Fetcher.java:364)
> 	at org.apache.tez.runtime.library.common.shuffle.impl.Fetcher.run(Fetcher.java:203)
> >>
> It should be checking for "connectSucceeded" flag instead of "connection != null"



--
This message was sent by Atlassian JIRA
(v6.2#6252)