hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mit...@apache.org
Subject hive git commit: HIVE-17188: ObjectStore runs out of memory for large batches of addPartitions(). (Chris Drome, reviewed by Mithun Radhakrishnan, Vihang Karajgaonkar)
Date Wed, 02 Aug 2017 17:37:56 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2 c436e9751 -> 766ba7f48


HIVE-17188: ObjectStore runs out of memory for large batches of addPartitions(). (Chris Drome,
reviewed by Mithun Radhakrishnan, Vihang Karajgaonkar)


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

Branch: refs/heads/branch-2
Commit: 766ba7f483fe725d60f7500fab28f6337c82f5db
Parents: c436e97
Author: Mithun RK <mithun@apache.org>
Authored: Wed Aug 2 10:36:56 2017 -0700
Committer: Mithun RK <mithun@apache.org>
Committed: Wed Aug 2 10:36:56 2017 -0700

----------------------------------------------------------------------
 .../src/java/org/apache/hadoop/hive/metastore/ObjectStore.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/766ba7f4/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index 3e96d4a..62e4c94 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -1725,6 +1725,7 @@ public class ObjectStore implements RawStore, Configurable {
       }
       if (toPersist.size() > 0) {
         pm.makePersistentAll(toPersist);
+        pm.flush();
       }
 
       success = commitTransaction();


Mime
View raw message