Repository: hive
Updated Branches:
  refs/heads/master c9224d58c -> 1a3e4be3d


HIVE-14814: metastoreClient is used directly in Hive cause NPE (Prasanth 
Jayachandran reviewed by Eugene Koifman)


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

Branch: refs/heads/master
Commit: 1a3e4be3dbd485f2630c7249254727ce58374d1c
Parents: c9224d5
Author: Prasanth Jayachandran <prasan...@apache.org>
Authored: Thu Sep 22 10:50:30 2016 -0700
Committer: Prasanth Jayachandran <prasan...@apache.org>
Committed: Thu Sep 22 10:50:30 2016 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/1a3e4be3/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 da46854..de6adb5 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
@@ -1864,7 +1864,7 @@ private void constructOneLBLocationMap(FileStatus fSta,
         for (Partition p : partitionsMap.values()) {
           partNames.add(p.getName());
         }
-        metaStoreClient.addDynamicPartitions(txnId, tbl.getDbName(), 
tbl.getTableName(),
+        getMSC().addDynamicPartitions(txnId, tbl.getDbName(), 
tbl.getTableName(),
           partNames, AcidUtils.toDataOperationType(operation));
       }
       LOG.info("Loaded " + partitionsMap.size() + " partitions");

Reply via email to