hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject hive git commit: HIVE-16844: Fix Connection leak in ObjectStore when new Conf object is used (Sunitha Beeram, reviewed by Carl Steinbach)
Date Wed, 14 Jun 2017 00:09:15 GMT
Repository: hive
Updated Branches:
  refs/heads/master 49ae8b694 -> f572ce6d2


HIVE-16844: Fix Connection leak in ObjectStore when new Conf object is used (Sunitha Beeram,
reviewed by Carl Steinbach)


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

Branch: refs/heads/master
Commit: f572ce6d2c708ae0a08254d042ce5739c096ba18
Parents: 49ae8b6
Author: Carl Steinbach <cws@apache.org>
Authored: Tue Jun 13 17:08:46 2017 -0700
Committer: Carl Steinbach <cws@apache.org>
Committed: Tue Jun 13 17:08:46 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/hive/blob/f572ce6d/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 d02c5da..e13612e 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -290,6 +290,8 @@ public class ObjectStore implements RawStore, Configurable {
       if (propsChanged) {
         if (pmf != null){
           clearOutPmfClassLoaderCache(pmf);
+          // close the underlying connection pool to avoid leaks
+          pmf.close();
         }
         pmf = null;
         prop = null;


Mime
View raw message