hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xianyin Xin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4177) yarn.util.Clock should not be used to time a duration or time interval
Date Thu, 17 Sep 2015 13:29:05 GMT

    [ https://issues.apache.org/jira/browse/YARN-4177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14802911#comment-14802911
] 

Xianyin Xin commented on YARN-4177:
-----------------------------------

In a following steps I would try to fix several important places where clock is misused.

> yarn.util.Clock should not be used to time a duration or time interval
> ----------------------------------------------------------------------
>
>                 Key: YARN-4177
>                 URL: https://issues.apache.org/jira/browse/YARN-4177
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Xianyin Xin
>         Attachments: YARN-4177.001.patch
>
>
> There're many places uses Clock to time intervals, which is dangerous as commented by
[~stevel@apache.org] in HADOOP-12409. Instead, we should use hadoop.util.Timer#monotonicNow()
to get monotonic time. Or we could provide a MonotonicClock in yarn.util considering the consistency
of code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message