hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu...@apache.org
Subject [35/50] [abbrv] hive git commit: HIVE-11215: Delete spills only if they exist (Gopal V, reviewed by Matt Mccline)
Date Thu, 16 Jul 2015 04:41:22 GMT
HIVE-11215: Delete spills only if they exist (Gopal V, reviewed by Matt Mccline)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/6e0d4809
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/6e0d4809
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/6e0d4809

Branch: refs/heads/beeline-cli
Commit: 6e0d4809baed42e25a46373f0a01a3ef421337ad
Parents: 46c76d6
Author: Gopal V <gopalv@apache.org>
Authored: Tue Jul 14 22:19:02 2015 -0700
Committer: Gopal V <gopalv@apache.org>
Committed: Tue Jul 14 22:19:02 2015 -0700

----------------------------------------------------------------------
 .../exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/6e0d4809/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
index 32b60d0..d2e980c 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/VectorMapJoinRowBytesContainer.java
@@ -305,9 +305,12 @@ public class VectorMapJoinRowBytesContainer {
       }
       fileOutputStream = null;
     }
-    try {
-      FileUtil.fullyDelete(parentFile);
-    } catch (Throwable ignored) {
+
+    if (parentFile != null) {
+      try {
+        FileUtil.fullyDelete(parentFile);
+      } catch (Throwable ignored) {
+      }
     }
     parentFile = null;
     tmpFile = null;


Mime
View raw message