pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From knogu...@apache.org
Subject svn commit: r1770018 - in /pig/trunk: CHANGES.txt test/org/apache/pig/test/TestPigRunner.java
Date Wed, 16 Nov 2016 17:06:22 GMT
Author: knoguchi
Date: Wed Nov 16 17:06:22 2016
New Revision: 1770018

URL: http://svn.apache.org/viewvc?rev=1770018&view=rev
Log:
PIG-5060: TestPigRunner.testDisablePigCounters2 failing with tez (knoguchi)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/test/org/apache/pig/test/TestPigRunner.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1770018&r1=1770017&r2=1770018&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Wed Nov 16 17:06:22 2016
@@ -59,6 +59,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-5060: TestPigRunner.testDisablePigCounters2 failing with tez (knoguchi)
+
 PIG-5056: Fix AvroStorage writing enums (szita via daijy)
 
 PIG-5055: Infinite loop with join by fixed index (knoguchi)

Modified: pig/trunk/test/org/apache/pig/test/TestPigRunner.java
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestPigRunner.java?rev=1770018&r1=1770017&r2=1770018&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestPigRunner.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestPigRunner.java Wed Nov 16 17:06:22 2016
@@ -1055,8 +1055,13 @@ public class TestPigRunner {
             List<OutputStats> outputs = stats.getOutputStats();
             assertEquals(2, outputs.size());
             if (execType.equals("tez")) {
-                assertEquals(outputs.get(0).getNumberRecords(), 5);
-                assertEquals(outputs.get(1).getNumberRecords(), 2);
+                if( outputs.get(0).getLocation().endsWith("tmp/output") ) {
+                    assertEquals(2, outputs.get(0).getNumberRecords());
+                    assertEquals(5, outputs.get(1).getNumberRecords());
+                } else {
+                    assertEquals(5, outputs.get(0).getNumberRecords());
+                    assertEquals(2, outputs.get(1).getNumberRecords());
+                }
             } else {
                 for (OutputStats outstats : outputs) {
                     // the multi-output counters are disabled



Mime
View raw message