DaveTeng0 commented on code in PR #3614:
URL: https://github.com/apache/ozone/pull/3614#discussion_r932839629
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocol/OzoneManagerProtocol.java:
##########
@@ -908,4 +909,18 @@ default PrepareStatusResponse
getOzoneManagerPrepareStatus(long txnId)
default CancelPrepareResponse cancelOzoneManagerPrepare() throws IOException
{
return CancelPrepareResponse.newBuilder().build();
}
+
+ /**
+ * Send RPC request with or without payload to OM
+ * to benchmark RPC communication performance.
+ * @param payloadReq payload in request.
+ * @param payloadSizeResp payload size of response.
+ * @param emptyResp if the payload of response is empty or not.
+ * @throws IOException if there is error in the RPC communication.
+ * @return EchoRPCResponse.
+ */
+ EchoRPCResponse echoRPCReq(byte[] payloadReq,
+ int payloadSizeResp, boolean emptyResp)
Review Comment:
yes sure!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]