You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2018/04/24 01:53:04 UTC
hive git commit: HIVE-19265 : Potential NPE and hiding actual
exception in Hive#copyFiles (Igor Kryvenko via Ashutosh Chauhan)
Repository: hive
Updated Branches:
refs/heads/master f0199500f -> cce0e3777
HIVE-19265 : Potential NPE and hiding actual exception in Hive#copyFiles (Igor Kryvenko via Ashutosh Chauhan)
Signed-off-by: Ashutosh Chauhan <ha...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/cce0e377
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/cce0e377
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/cce0e377
Branch: refs/heads/master
Commit: cce0e3777d178e68f38a0c9335d44a12fff42a6b
Parents: f019950
Author: Igor Kryvenko <kr...@gmail.com>
Authored: Mon Apr 23 18:52:27 2018 -0700
Committer: Ashutosh Chauhan <ha...@apache.org>
Committed: Mon Apr 23 18:52:27 2018 -0700
----------------------------------------------------------------------
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/cce0e377/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index 69d42e3..4661881 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -3291,7 +3291,9 @@ private void constructOneLBLocationMap(FileStatus fSta,
try {
files = srcFs.listStatus(src.getPath(), FileUtils.HIDDEN_FILES_PATH_FILTER);
} catch (IOException e) {
- pool.shutdownNow();
+ if (null != pool) {
+ pool.shutdownNow();
+ }
throw new HiveException(e);
}
} else {