[jira] [Created] (FLINK-4421) Make clocks and time measurements monotonous

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-4421) Make clocks and time measurements monotonous

Shang Yuanchun (Jira)
Stephan Ewen created FLINK-4421:
-----------------------------------

             Summary: Make clocks and time measurements monotonous
                 Key: FLINK-4421
                 URL: https://issues.apache.org/jira/browse/FLINK-4421
             Project: Flink
          Issue Type: Improvement
          Components: Core
            Reporter: Stephan Ewen
            Priority: Minor


Currently, many places use {{System.currentTimeMillis()}} to acquire timestamps or measure time intervals.

Since this relies on the system clock, and the system clock is not necessarily monotonous (in the presence of clock updates), this can lead to negative duration and decreasing timestamps where increasing timestamps are expected.



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