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

Rohini Palaniswamy commented on PIG-4677:
-----------------------------------------

It should still be assertFalse(server.existsFile("done")); . With this change 
it is still not stopping execution of the script when it is compiled in two 
phases due to fs statements. Will have to make checkStopOnFailure return true 
instead of void, and throw new ExecException(msg.toString(), errCode, 
PigException.REMOTE_ENVIRONMENT); instead of return pigStats at the end in 
launchPig if checkStopOnFailure returned true. 

> Display failure information on stop on failure
> ----------------------------------------------
>
>                 Key: PIG-4677
>                 URL: https://issues.apache.org/jira/browse/PIG-4677
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.11.1
>            Reporter: Mit Desai
>            Assignee: Mit Desai
>         Attachments: PIG-4677.2.patch, PIG-4677.patch
>
>
> When stop on failure option is specified, pig abruptly exits without 
> displaying any job stats or failed job information which it usually does in 
> case of failures.
> {code}
> 2015-06-04 20:35:38,170 [uber-SubtaskRunner] INFO  
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
>   - 9% complete
> 2015-06-04 20:35:38,171 [uber-SubtaskRunner] INFO  
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher
>   - Running jobs are 
> [job_1428329756093_3741748,job_1428329756093_3741752,job_1428329756093_3741753,job_1428329756093_3741754,job_1428329756093_3741756]
> 2015-06-04 20:35:40,201 [uber-SubtaskRunner] ERROR 
> org.apache.pig.tools.grunt.Grunt  - ERROR 6017: Job failed!
> Hadoop Job IDs executed by Pig: 
> job_1428329756093_3739816,job_1428329756093_3741752,job_1428329756093_3739814,job_1428329756093_3741748,job_1428329756093_3741756,job_1428329756093_3741753,job_1428329756093_3741754
> <<< Invocation of Main class completed <<<
> {code}



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

Reply via email to