From 1dee7837ff4a0880bd7e524fd67f7a5819e87b85 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 9 Aug 2013 22:01:48 +0000 Subject: [PATCH] HBASE-9178 TestSecureLoadIncrementalHFilesSplitRecovery hangs git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1512512 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/hbase/security/access/SecureBulkLoadEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java index 132777973f0..4e058b341b1 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java @@ -36,6 +36,7 @@ import org.apache.hadoop.hbase.DoNotRetryIOException; import org.apache.hadoop.hbase.coprocessor.CoprocessorService; import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment; import org.apache.hadoop.hbase.ipc.RequestContext; +import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.ResponseConverter; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService; @@ -151,8 +152,7 @@ public class SecureBulkLoadEndpoint extends SecureBulkLoadService try { getAccessController().prePrepareBulkLoad(env); String bulkToken = createStagingDir(baseStagingDir, - getActiveUser(), - TableName.valueOf(request.getTableName().toByteArray())).toString(); + getActiveUser(), ProtobufUtil.toTableName(request.getTableName())).toString(); done.run(PrepareBulkLoadResponse.newBuilder().setBulkToken(bulkToken).build()); } catch (IOException e) { ResponseConverter.setControllerException(controller, e);