Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Whenever we are measuring a time delta or duration in the same process, the timestamps probably should be using Time.monotonicNow rather than Time.now or System.currentTimeMillis. The latter two are directly reading the system clock which can move faster or slower than actual time if the system is undergoing a time adjustment (e.g.: adjtime or admin sets a new system time).
We should go through the code base and identify places where the code is using the system clock but really should be using monotonic time.
Attachments
Issue Links
- is related to
-
HDFS-12526 FSDirectory should use Time.monotonicNow for durations
- Resolved
-
MAPREDUCE-6964 BaileyBorweinPlouffe should use Time.monotonicNow for measuring durations
- Resolved
-
MAPREDUCE-6965 QuasiMonteCarlo should use Time.monotonicNow for measuring durations
- Resolved
-
MAPREDUCE-6966 DistSum should use Time.monotonicNow for measuring durations
- Resolved
-
MAPREDUCE-6967 gridmix/SleepReducer should use Time.monotonicNow for measuring durations
- Resolved
-
HDFS-12243 Trash emptier should use Time.monotonicNow()
- Patch Available
-
HDFS-12538 TestInstrumentationService should use Time.monotonicNow
- Patch Available
- relates to
-
HADOOP-14669 GenericTestUtils.waitFor should use monotonic time
- Resolved