Skip to content

Commit

Permalink
HBASE-26542 Apply a package to test protobuf files (addendum)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ndimiduk committed Dec 17, 2021
1 parent c93e457 commit 006433b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void test() throws IOException, InterruptedException {
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());
Expand Down

0 comments on commit 006433b

Please sign in to comment.