You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ra...@apache.org on 2020/02/11 05:31:45 UTC

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5691 create index is failing when phoenix acls enabled and ranger is enabled(Rajeshbabu)

This is an automated email from the ASF dual-hosted git repository.

rajeshbabu pushed a commit to branch 4.x-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
     new a58dae7  PHOENIX-5691 create index is failing when phoenix acls enabled and ranger is enabled(Rajeshbabu)
a58dae7 is described below

commit a58dae7eee1ca1c1eb298b170632da0575d00cbb
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
AuthorDate: Tue Feb 11 11:01:05 2020 +0530

    PHOENIX-5691 create index is failing when phoenix acls enabled and ranger is enabled(Rajeshbabu)
---
 .../org/apache/phoenix/coprocessor/PhoenixAccessController.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
index d23c533..4603f1e 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
@@ -27,6 +27,7 @@ import java.util.List;
 import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
 
+import com.google.protobuf.RpcController;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.AuthUtil;
 import org.apache.hadoop.hbase.CompoundConfiguration;
@@ -44,8 +45,8 @@ import org.apache.hadoop.hbase.coprocessor.MasterCoprocessorEnvironment;
 import org.apache.hadoop.hbase.coprocessor.ObserverContext;
 import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
 import org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessorEnvironment;
-import org.apache.hadoop.hbase.ipc.HBaseRpcController;
 import org.apache.hadoop.hbase.ipc.RpcServer;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
 import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
 import org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos;
 import org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService;
@@ -489,8 +490,7 @@ public class PhoenixAccessController extends BaseMetaDataEndpointObserver {
 
             private void getUserPermsFromUserDefinedAccessController(final List<UserPermission> userPermissions, Connection connection, AccessControlService.Interface service) {
 
-                HBaseRpcController controller = ((ClusterConnection)connection)
-                        .getRpcControllerFactory().newController();
+                ServerRpcController controller = new ServerRpcController();
 
                 AccessControlProtos.GetUserPermissionsRequest.Builder builderTablePerms = AccessControlProtos.GetUserPermissionsRequest
                         .newBuilder();
@@ -511,7 +511,7 @@ public class PhoenixAccessController extends BaseMetaDataEndpointObserver {
             }
 
             private void callGetUserPermissionsRequest(final List<UserPermission> userPermissions, AccessControlService.Interface service
-                    , AccessControlProtos.GetUserPermissionsRequest request, HBaseRpcController controller) {
+                    , AccessControlProtos.GetUserPermissionsRequest request, RpcController controller) {
                 service.getUserPermissions(controller, request,
                         new RpcCallback<AccessControlProtos.GetUserPermissionsResponse>() {
                             @Override