hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [06/10] hbase git commit: Amend HBASE-14512 Cache UGI groups
Date Sat, 16 Jan 2016 03:27:37 GMT
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 <apurtell@apache.org>
Authored: Fri Jan 15 18:42:29 2016 -0800
Committer: Andrew Purtell <apurtell@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;
     }


Mime
View raw message