[
https://issues.apache.org/jira/browse/HADOOP-16290?focusedWorklogId=623435&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-623435
]
ASF GitHub Bot logged work on HADOOP-16290:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jul/21 06:18
Start Date: 16/Jul/21 06:18
Worklog Time Spent: 10m
Work Description: virajjasani commented on a change in pull request #3198:
URL: https://github.com/apache/hadoop/pull/3198#discussion_r670991285
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RpcMetrics.java
##########
@@ -49,7 +51,7 @@
final String name;
final boolean rpcQuantileEnable;
/** The time unit used when storing/accessing time durations. */
- public final static TimeUnit TIMEUNIT = TimeUnit.MILLISECONDS;
+ private static TimeUnit metricsTimeUnit = TimeUnit.MILLISECONDS;
Review comment:
The problem is we are reassigning it at L113 so it could not be made
final
```
if (StringUtils.isNotEmpty(timeunit)) {
try {
metricsTimeUnit = TimeUnit.valueOf(timeunit);
} catch (IllegalArgumentException e) {
LOG.info("Config key {} 's value {} does not correspond to enum
values"
+ " of java.util.concurrent.TimeUnit. Hence default unit"
+ " MILLISECONDS will be used",
CommonConfigurationKeys.RPC_METRICS_TIME_UNIT, timeunit);
}
}
```
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 623435)
Time Spent: 2h 20m (was: 2h 10m)
> Enable RpcMetrics units to be configurable
> ------------------------------------------
>
> Key: HADOOP-16290
> URL: https://issues.apache.org/jira/browse/HADOOP-16290
> Project: Hadoop Common
> Issue Type: Improvement
> Components: ipc, metrics
> Reporter: Erik Krogen
> Assignee: Viraj Jasani
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> One resulting discussion from HADOOP-16266 was that it would be better for
> the RPC metrics (processing time, queue time) to be in micro- or nanoseconds,
> since milliseconds does not accurately capture the processing time of many
> RPC operations. HADOOP-16266 made some small changes in this direction, but
> to keep the size of the patch down, we did not make it fully configurable. We
> can complete that work here.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]