hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcama...@apache.org
Subject hive git commit: HIVE-13885: Hive session close is not resetting thread name (Rajat Khandelwal, reviewed by Sergey Shelukhin)
Date Wed, 01 Jun 2016 08:37:19 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2.1 77f563f26 -> 761aead05


HIVE-13885: Hive session close is not resetting thread name (Rajat Khandelwal, reviewed by
Sergey Shelukhin)


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

Branch: refs/heads/branch-2.1
Commit: 761aead05b90fae9320a4f2344c7276a13b8ac2f
Parents: 77f563f
Author: Rajat Khandelwal <prongs@apache.org>
Authored: Wed Jun 1 09:37:08 2016 +0100
Committer: Jesus Camacho Rodriguez <jcamacho@apache.org>
Committed: Wed Jun 1 09:37:08 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/hive/blob/761aead0/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
index a0015eb..54ee567 100644
--- a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
+++ b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
@@ -646,6 +646,7 @@ public class HiveSessionImpl implements HiveSession {
         hiveHist.closeStream();
       }
       try {
+        sessionState.resetThreadName();
         sessionState.close();
       } finally {
         sessionState = null;
@@ -655,6 +656,7 @@ public class HiveSessionImpl implements HiveSession {
     } finally {
       if (sessionState != null) {
         try {
+          sessionState.resetThreadName();
           sessionState.close();
         } catch (Throwable t) {
           LOG.warn("Error closing session", t);


Mime
View raw message