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 <psomogyi@apache.org>
This commit is contained in:
Nick Dimiduk 2021-12-16 10:51:55 -08:00 committed by Nick Dimiduk
parent 555fcf42b0
commit 9d6823236d
1 changed files with 1 additions and 1 deletions

View File

@ -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());