You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2016/01/16 04:27:37 UTC

[06/10] hbase git commit: Amend HBASE-14512 Cache UGI groups

Amend HBASE-14512 Cache UGI groups

Handle the case where tests might create a call with a null connection


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

Branch: refs/heads/branch-1
Commit: 8272c84f60217f508165258b3f34e1f5c9d811db
Parents: 1f1a8fd
Author: Andrew Purtell <ap...@apache.org>
Authored: Fri Jan 15 18:42:29 2016 -0800
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Jan 15 19:27:14 2016 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8272c84f/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
index f8f9875..cc588fb 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
@@ -338,7 +338,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
       this.isError = false;
       this.size = size;
       this.tinfo = tinfo;
-      this.user = connection.user;
+      this.user = connection == null ? null : connection.user;
       this.remoteAddress = remoteAddress;
       this.retryImmediatelySupported = connection.retryImmediatelySupported;
     }