pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rd...@apache.org
Subject svn commit: r1100418 - in /pig/branches/branch-0.9: CHANGES.txt src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java
Date Sat, 07 May 2011 00:12:29 GMT
Author: rding
Date: Sat May  7 00:12:29 2011
New Revision: 1100418

URL: http://svn.apache.org/viewvc?rev=1100418&view=rev
Log:
PIG-2033: Pig returns sucess for the failed Pig script

Modified:
    pig/branches/branch-0.9/CHANGES.txt
    pig/branches/branch-0.9/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java

Modified: pig/branches/branch-0.9/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.9/CHANGES.txt?rev=1100418&r1=1100417&r2=1100418&view=diff
==============================================================================
--- pig/branches/branch-0.9/CHANGES.txt (original)
+++ pig/branches/branch-0.9/CHANGES.txt Sat May  7 00:12:29 2011
@@ -535,6 +535,8 @@ PIG-1309: Map-side Cogroup (ashutoshc)
 
 BUG FIXES
 
+PIG-2033: Pig returns sucess for the failed Pig script (rding)
+
 PIG-1993: PigStorageSchema throw NPE with ColumnPruning (daijy)
 
 PIG-1935: New logical plan: Should not push up filter in front of Bincond (daijy)

Modified: pig/branches/branch-0.9/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.9/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java?rev=1100418&r1=1100417&r2=1100418&view=diff
==============================================================================
--- pig/branches/branch-0.9/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java
(original)
+++ pig/branches/branch-0.9/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java
Sat May  7 00:12:29 2011
@@ -354,6 +354,10 @@ public class MapReduceLauncher extends L
         // stats collection is done, log the results
         PigStatsUtil.stopCollection(true); 
         
+        // PigStatsUtil.stopCollection also computes the return code based on
+        // total jobs to run, jobs successful and jobs failed
+        failed = failed || !PigStats.get().isSuccessful();
+        
         Map<Enum, Long> warningAggMap = new HashMap<Enum, Long>();
                 
         if (succJobs != null) {



Mime
View raw message