You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2014/12/16 05:22:25 UTC
hbase git commit: HBASE-12493 User class should provide a way to
re-use existing token - addendum for hadoop-1
Repository: hbase
Updated Branches:
refs/heads/0.98 65f3f42b2 -> d6d22113c
HBASE-12493 User class should provide a way to re-use existing token - addendum for hadoop-1
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d6d22113
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d6d22113
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d6d22113
Branch: refs/heads/0.98
Commit: d6d22113c93d252b6b206d74e98da73273ba5a3a
Parents: 65f3f42
Author: tedyu <yu...@gmail.com>
Authored: Mon Dec 15 20:22:18 2014 -0800
Committer: tedyu <yu...@gmail.com>
Committed: Mon Dec 15 20:22:18 2014 -0800
----------------------------------------------------------------------
.../java/org/apache/hadoop/hbase/security/token/TokenUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/d6d22113/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java
index e46841a..b58fd8f 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java
@@ -353,7 +353,7 @@ public class TokenUtil {
Token<AuthenticationTokenIdentifier> token = getAuthToken(conn.getConfiguration(), user);
if (token == null) {
token = obtainToken(conn, user);
- user.getUGI().addToken(token.getService(), token);
+ user.getUGI().addToken(token);
return true;
}
return false;