[
https://issues.apache.org/jira/browse/HDFS-17709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913756#comment-17913756
]
ASF GitHub Bot commented on HDFS-17709:
---------------------------------------
KeeProMise commented on code in PR #7292:
URL: https://github.com/apache/hadoop/pull/7292#discussion_r1918620312
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/protocolPB/AsyncRpcProtocolPBUtil.java:
##########
@@ -87,6 +89,7 @@ public static <T, R> R asyncIpcClient(
// transfer thread local context to worker threads of executor.
ThreadLocalContext threadLocalContext = new ThreadLocalContext();
asyncCompleteWith(responseFuture.handleAsync((result, e) -> {
+ FederationRPCMetrics.ASYNC_RESPONDER_START_TIME.set(Time.monotonicNow());
Review Comment:
Hi @hfutatzhanghb If thread local variables are used, it is recommended to
use ThreadLocalContext, refer to startUpTime and proxyOpTime; because the
response of a request may be processed by async responder or async handler
> [ARR] Add async responder performance metrics
> ---------------------------------------------
>
> Key: HDFS-17709
> URL: https://issues.apache.org/jira/browse/HDFS-17709
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: rbf
> Reporter: farmmamba
> Assignee: farmmamba
> Priority: Major
> Labels: pull-request-available
> Attachments: image-2025-01-16-16-58-29-730.png
>
>
> Add metrics to measure the performance of async responder thread.
> This metric can guide us to tune the async responder thread pool.
>
> !image-2025-01-16-16-58-29-730.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]