You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ai...@apache.org on 2016/03/04 16:15:56 UTC

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

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 <ai...@apache.org>
Authored: Wed Feb 24 11:28:44 2016 -0500
Committer: Aihua Xu <ai...@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();
   }
 
   /**