Repository: hive
Updated Branches:
  refs/heads/branch-2.1 95f9670db -> cfa5e928c


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/cfa5e928
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/cfa5e928
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/cfa5e928

Branch: refs/heads/branch-2.1
Commit: cfa5e928c287208866a012fb08ddd3d0f0635b0e
Parents: 95f9670
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:51:09 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/cfa5e928/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 988b0b1..43f936e 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
@@ -1782,7 +1782,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));
       }
       return partitionsMap;

Reply via email to