From 37397637ad6ade20cce322585c6c92e890e970ac Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Thu, 16 Dec 2021 10:51:55 -0800 Subject: [PATCH] HBASE-26542 Apply a `package` to test protobuf files (addendum) RpcServer identifies the services it hosts by unqualified service name. Thus, use `getName()` instead of `getFullName()`. See also HBASE-26589. Signed-off-by: Peter Somogyi --- .../hadoop/hbase/ipc/TestRpcServerSlowConnectionSetup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/ipc/TestRpcServerSlowConnectionSetup.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/ipc/TestRpcServerSlowConnectionSetup.java index aedf57e72f0..3627262817d 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/ipc/TestRpcServerSlowConnectionSetup.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/ipc/TestRpcServerSlowConnectionSetup.java @@ -114,7 +114,7 @@ public class TestRpcServerSlowConnectionSetup { socket.getOutputStream().flush(); ConnectionHeader header = ConnectionHeader.newBuilder() - .setServiceName(TestRpcServiceProtos.TestProtobufRpcProto.getDescriptor().getFullName()) + .setServiceName(TestRpcServiceProtos.TestProtobufRpcProto.getDescriptor().getName()) .setVersionInfo(ProtobufUtil.getVersionInfo()).build(); DataOutputStream dos = new DataOutputStream(socket.getOutputStream()); dos.writeInt(header.getSerializedSize());