[
https://issues.apache.org/jira/browse/HDFS-10341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299076#comment-15299076
]
Arpit Agarwal commented on HDFS-10341:
--------------------------------------
Hi [~ajisakaa], can we just return timedOutItems.size() by querying it within
the timedOutItems object lock instead of adding a new Atomic int?
I checked every place that lock is taken and it is fairly lightweight so so I
see no problem acquiring it when querying metrics. Thanks.
> Add a metric to expose the timeout number of pending replication blocks
> -----------------------------------------------------------------------
>
> Key: HDFS-10341
> URL: https://issues.apache.org/jira/browse/HDFS-10341
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Akira AJISAKA
> Assignee: Akira AJISAKA
> Attachments: HDFS-10341.01.patch
>
>
> Per HDFS-6682, recording the timeout number of pending replication blocks is
> useful to get the cluster health.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]