hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Srinivasan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-5201) getDiagnostics in TaskReport should return exceptions
Date Tue, 10 Feb 2009 23:57:59 GMT

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

Santhosh Srinivasan commented on HADOOP-5201:
---------------------------------------------

Let me describe the context of the original request. I am a Pig developer and I need to query
exceptions that are thrown by Pig in the runtime envrionment. Since Hadoop does not support
the transmission of exceptions on the wire, I had to write methods that recursively recreate
the entire exception chain based on the strings sent by Hadoop. It would be far easier if
Hadoop can transmit these exceptions.

I do not agree with Owen's comments that exceptions may not exist in the context where they
are examined. IMHO, Hadoop should take care of publishing and transmitting the right exceptions
making it possible to applications to use the transmitted exception as is.

> getDiagnostics in TaskReport should return exceptions
> -----------------------------------------------------
>
>                 Key: HADOOP-5201
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5201
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: mapred
>            Reporter: Santhosh Srinivasan
>
> Currently, getDiagnostics() returns Strings. When exceptions are thrown in user code
and/or Hadoop, it would be cleaner to propagate the exception back to the application for
better error handling. Hadoop should return the exceptions instead of returning string representations
that correspond to printStackTrace() output.

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


Mime
View raw message