You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/12/22 10:42:38 UTC
[GitHub] [hadoop] jianghuazhu commented on a change in pull request #3822: HDFS-16394.RPCMetrics increases the number of handlers in processing.
jianghuazhu commented on a change in pull request #3822:
URL: https://github.com/apache/hadoop/pull/3822#discussion_r773787731
##########
File path: hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java
##########
@@ -1107,6 +1108,45 @@ public TestRpcService run() {
}
}
+ @Test
+ public void testNumInProcessHandlerMetrics() throws Exception {
+ UserGroupInformation ugi = UserGroupInformation.
+ createUserForTesting("user123", new String[0]);
+ // use 1 handler so the callq can be plugged
+ final Server server = setupTestServer(conf, 1);
+ try {
+ RpcMetrics rpcMetrics = server.getRpcMetrics();
+ assertEquals(rpcMetrics.getNumInProcessHandler(), 0);
+
+ ExternalCall<String> call1 = newExtCall(ugi,
+ new PrivilegedExceptionAction<String>() {
+ @Override
+ public String run() throws Exception {
+ assertTrue(rpcMetrics.getNumInProcessHandler() > 0);
Review comment:
Thank you @virajjasani for your comments and reviews.
I will update it later.
--
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: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org