hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vik...@apache.org
Subject hive git commit: HIVE-13327: SessionID added to HS2 threadname does not trim spaces (Prasanth Jayachandran reviewed by Gopal V)
Date Tue, 22 Mar 2016 21:14:41 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2.0 d4453d1bb -> f76c30384


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/f76c3038
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f76c3038
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f76c3038

Branch: refs/heads/branch-2.0
Commit: f76c3038487e26b201e0f1ba6f52e5d006a187f8
Parents: d4453d1
Author: Prasanth Jayachandran <j.prasanth.j@gmail.com>
Authored: Mon Mar 21 23:49:00 2016 -0500
Committer: vikram <vikram@hortonworks.com>
Committed: Tue Mar 22 14:10:24 2016 -0700

----------------------------------------------------------------------
 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/f76c3038/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 93833fc..b2767c9 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
@@ -415,7 +415,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());
     }
   }
 


Mime
View raw message