Ahmed Hussein created YARN-10566: ------------------------------------ Summary: Elapsed time should be measured monotonicNow Key: YARN-10566 URL: https://issues.apache.org/jira/browse/YARN-10566 Project: Hadoop YARN Issue Type: Bug Reporter: Ahmed Hussein Assignee: Ahmed Hussein
I noticed that there is a widespread incorrect usage of {{System.currentTimeMillis()}} throughout the yarn code. For example: {code:java} // Some comments here long start = System.currentTimeMillis(); while (System.currentTimeMillis() - start < timeout) { // Do something } {code} Elapsed time should be measured using `monotonicNow()`. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org