Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
see discussion in HADOOP-15901
Description
I noticed that there is a widespread incorrect usage of System.currentTimeMillis() throughout the hadoop code.
For example:
// Some comments here long start = System.currentTimeMillis(); while (System.currentTimeMillis() - start < timeout) { // Do something }
Elapsed time should be measured using `monotonicNow()`.
Attachments
Issue Links
- is a parent of
-
YARN-10566 Elapsed time should be measured monotonicNow
- Resolved
- links to