kerneltime commented on code in PR #6037:
URL: https://github.com/apache/ozone/pull/6037#discussion_r1459866526


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/OmMetadataGenerator.java:
##########
@@ -449,6 +499,26 @@ private void applyOperation(long counter) throws Exception 
{
           }
       );
       break;
+    case EMPTY_RPC:
+      getMetrics().timer(operation.name()).time(() -> {
+            try {
+              ozoneManagerClient.echoRPCReq(new byte[] {}, 0, false);
+            } catch (IOException e) {
+              throw new RuntimeException(e);
+            }
+          }
+      );
+      break;
+    case EMPTY_RPC_WRITE_RATIS:
+      getMetrics().timer(operation.name()).time(() -> {
+            try {
+              ozoneManagerClient.echoRPCReq(new byte[] {}, 0, true);

Review Comment:
   It might be a good idea to add option for payload as well here.



-- 
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]

Reply via email to