pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject svn commit: r1603315 - in /pig/trunk: CHANGES.txt src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
Date Tue, 17 Jun 2014 23:15:09 GMT
Author: cheolsoo
Date: Tue Jun 17 23:15:09 2014
New Revision: 1603315

URL: http://svn.apache.org/r1603315
Log:
PIG-4017: NPE thrown from JobControlCompiler.shipToHdfs (cheolsoo)

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1603315&r1=1603314&r2=1603315&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Tue Jun 17 23:15:09 2014
@@ -193,6 +193,8 @@ PIG-3882: Multiquery off mode execution 
  
 BUG FIXES
 
+PIG-4017: NPE thrown from JobControlCompiler.shipToHdfs (cheolsoo)
+
 PIG-3997: Issue on Pig docs: Testing and Diagnostics (zjffdu via cheolsoo)
 
 PIG-3998: Documentation fix: invalid page links, wrong Groovy udf example (lbendig via cheolsoo)

Modified: pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java?rev=1603315&r1=1603314&r2=1603315&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
(original)
+++ pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
Tue Jun 17 23:15:09 2014
@@ -1687,7 +1687,9 @@ public class JobControlCompiler{
         } finally {
             org.apache.commons.io.IOUtils.closeQuietly(is);
             // IOUtils should not close stream to HDFS quietly
-            os.close();
+            if (os != null) {
+                os.close();
+            }
         }
         return dst;
     }



Mime
View raw message