FAQ
Repository: hive
Updated Branches:
   refs/heads/master 493a6b3a5 -> 2c570dece


HIVE-13129: CliService leaks HMS connection (Reviewed by Chaoyu Tang, Naveen Gangam)


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

Branch: refs/heads/master
Commit: 2c570dece31968f8c4b6785461857098af1a742e
Parents: 493a6b3
Author: Aihua Xu <aihuaxu@apache.org>
Authored: Wed Feb 24 11:28:44 2016 -0500
Committer: Aihua Xu <aihuaxu@apache.org>
Committed: Fri Mar 4 10:15:34 2016 -0500

----------------------------------------------------------------------
  service/src/java/org/apache/hive/service/cli/CLIService.java | 2 ++
  1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/2c570dec/service/src/java/org/apache/hive/service/cli/CLIService.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/CLIService.java b/service/src/java/org/apache/hive/service/cli/CLIService.java
index cc6e138..bba0090 100644
--- a/service/src/java/org/apache/hive/service/cli/CLIService.java
+++ b/service/src/java/org/apache/hive/service/cli/CLIService.java
@@ -148,6 +148,8 @@ public class CLIService extends CompositeService implements ICLIService {
    @Override
    public synchronized void stop() {
      super.stop();
+ // Release the HMS connection for this service thread
+ Hive.closeCurrent();
    }

    /**

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 4, '16 at 3:15p
activeMar 4, '16 at 3:15p
posts1
users1
websitehive.apache.org

1 user in discussion

Aihuaxu: 1 post

People

Translate

site design / logo © 2021 Grokbase