You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2014/11/08 23:39:10 UTC

svn commit: r1637605 - in /pig/branches/branch-0.14: CHANGES.txt test/org/apache/pig/impl/builtin/TestStreamingUDF.java

Author: daijy
Date: Sat Nov  8 22:39:10 2014
New Revision: 1637605

URL: http://svn.apache.org/r1637605
Log:
PIG-4312: TestStreamingUDF tez mode leave orphan process on Windows

Modified:
    pig/branches/branch-0.14/CHANGES.txt
    pig/branches/branch-0.14/test/org/apache/pig/impl/builtin/TestStreamingUDF.java

Modified: pig/branches/branch-0.14/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.14/CHANGES.txt?rev=1637605&r1=1637604&r2=1637605&view=diff
==============================================================================
--- pig/branches/branch-0.14/CHANGES.txt (original)
+++ pig/branches/branch-0.14/CHANGES.txt Sat Nov  8 22:39:10 2014
@@ -101,6 +101,8 @@ OPTIMIZATIONS
  
 BUG FIXES
 
+PIG-4312: TestStreamingUDF tez mode leave orphan process on Windows (daijy)
+
 PIG-4314: BigData_5 hang on some machine (daijy)
 
 PIG-4299: SpillableMemoryManager assumes tenured heap incorrectly (prkommireddi via daijy)

Modified: pig/branches/branch-0.14/test/org/apache/pig/impl/builtin/TestStreamingUDF.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.14/test/org/apache/pig/impl/builtin/TestStreamingUDF.java?rev=1637605&r1=1637604&r2=1637605&view=diff
==============================================================================
--- pig/branches/branch-0.14/test/org/apache/pig/impl/builtin/TestStreamingUDF.java (original)
+++ pig/branches/branch-0.14/test/org/apache/pig/impl/builtin/TestStreamingUDF.java Sat Nov  8 22:39:10 2014
@@ -35,7 +35,9 @@ import org.apache.pig.data.TupleFactory;
 import org.apache.pig.test.MiniGenericCluster;
 import org.apache.pig.test.Util;
 import org.joda.time.DateTime;
+import org.junit.AfterClass;
 import org.junit.Before;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class TestStreamingUDF {
@@ -43,7 +45,17 @@ public class TestStreamingUDF {
     private static PigServer pigServerMapReduce = null;
 
     private TupleFactory tf = TupleFactory.getInstance();
-    private static MiniGenericCluster cluster = MiniGenericCluster.buildCluster();
+    private static MiniGenericCluster cluster;
+
+    @BeforeClass
+    public static void oneTimeSetup() {
+        cluster = MiniGenericCluster.buildCluster();
+    }
+
+    @AfterClass
+    public static void oneTimeTearDown() throws Exception {
+        cluster.shutDown();
+    }
 
     @Before
     public void setUp() throws Exception {