Repository: hive
Updated Branches:
  refs/heads/master db8fb8a42 -> d3d5d33c3


HIVE-13327: SessionID added to HS2 threadname does not trim spaces (Prasanth 
Jayachandran reviewed by Gopal V)


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

Branch: refs/heads/master
Commit: d3d5d33c3e0fd483b56a7eef7b248fedf319024e
Parents: db8fb8a
Author: Prasanth Jayachandran <j.prasant...@gmail.com>
Authored: Mon Mar 21 23:49:00 2016 -0500
Committer: Prasanth Jayachandran <j.prasant...@gmail.com>
Committed: Mon Mar 21 23:49:00 2016 -0500

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d3d5d33c/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java 
b/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
index 78bbb1f..23b8a96 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
@@ -417,7 +417,7 @@ public class SessionState {
     if (currThreadName.contains(logPrefix)) {
       final String[] names = currThreadName.split(logPrefix);
       LOG.info("Resetting thread name to {}", names[names.length - 1]);
-      Thread.currentThread().setName(names[names.length - 1]);
+      Thread.currentThread().setName(names[names.length - 1].trim());
     }
   }
 

Reply via email to