You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alex Levenson (Created) (JIRA)" <ji...@apache.org> on 2012/04/11 23:47:17 UTC

[jira] [Created] (PIG-2648) MapReduceLauncher squashes unchecked exceptions

MapReduceLauncher squashes unchecked exceptions
-----------------------------------------------

                 Key: PIG-2648
                 URL: https://issues.apache.org/jira/browse/PIG-2648
             Project: Pig
          Issue Type: Bug
          Components: impl
            Reporter: Alex Levenson


in:
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.JobControlThreadExceptionHandler

{code}
jobControlExceptionStackTrace = getStackStraceStr(throwable);
try {	
    jobControlException = getExceptionFromString(jobControlExceptionStackTrace);
} catch (Exception e) {
    String errMsg = "Could not resolve error that occured when launching map reduce job: "
            + jobControlExceptionStackTrace;
    jobControlException = new RuntimeException(errMsg);
}
{code}

The catch clause does not chain the original exception, this made tracking down: https://issues.apache.org/jira/browse/PIG-2645 a lot more difficult.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2648) MapReduceLauncher squashes unchecked exceptions

Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258715#comment-13258715 ] 

Daniel Dai commented on PIG-2648:
---------------------------------

Can you make a patch?
                
> MapReduceLauncher squashes unchecked exceptions
> -----------------------------------------------
>
>                 Key: PIG-2648
>                 URL: https://issues.apache.org/jira/browse/PIG-2648
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Alex Levenson
>
> in:
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.JobControlThreadExceptionHandler
> {code}
> jobControlExceptionStackTrace = getStackStraceStr(throwable);
> try {	
>     jobControlException = getExceptionFromString(jobControlExceptionStackTrace);
> } catch (Exception e) {
>     String errMsg = "Could not resolve error that occured when launching map reduce job: "
>             + jobControlExceptionStackTrace;
>     jobControlException = new RuntimeException(errMsg);
> }
> {code}
> The catch clause does not chain the original exception, this made tracking down: https://issues.apache.org/jira/browse/PIG-2645 a lot more difficult.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira