From 3851d05a80cfdebe087faa660ab488da02a6b943 Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Mon, 13 Oct 2014 17:29:09 +0000 Subject: [PATCH] HBASE-12237 HBaseZeroCopyByteString#wrap() should not be called in hbase-client code --- .../hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java index ed7a6afa18e..cf22dd59c2c 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java @@ -13,7 +13,6 @@ package org.apache.hadoop.hbase.ipc; import java.io.IOException; -import com.google.protobuf.HBaseZeroCopyByteString; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.classification.InterfaceAudience; @@ -23,6 +22,7 @@ import org.apache.hadoop.hbase.client.ClusterConnection; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse; +import org.apache.hadoop.hbase.util.ByteStringer; import com.google.protobuf.Descriptors; @@ -55,7 +55,7 @@ public class RegionServerCoprocessorRpcChannel extends CoprocessorRpcChannel { } final ClientProtos.CoprocessorServiceCall call = ClientProtos.CoprocessorServiceCall.newBuilder() - .setRow(HBaseZeroCopyByteString.wrap(HConstants.EMPTY_BYTE_ARRAY)) + .setRow(ByteStringer.wrap(HConstants.EMPTY_BYTE_ARRAY)) .setServiceName(method.getService().getFullName()).setMethodName(method.getName()) .setRequest(request.toByteString()).build(); CoprocessorServiceResponse result =