chiacyu opened a new pull request, #8096:
URL: https://github.com/apache/ozone/pull/8096

   ## What changes were proposed in this pull request?
   
   A lot of duration calculations are still using `System.currentTimeMillis()`. 
However, from the description of Time.now (which calls 
`System.currentTimeMillis()`
   
   > Current system time. Do not use this to calculate a duration or interval 
to sleep, because it will be broken by `settimeofday`. Instead, use 
`monotonicNow`.
   
   Therefore, we should replace them with `Time.monotonicNow()` / 
`Time.monotonicNowNanos()` to prevent the duration calculation being broken by 
`settimeofday`.
   
   
   ## What is the link to the Apache JIRA
   [HDDS-12060](https://issues.apache.org/jira/browse/HDDS-12060)
   
   ## How was this patch tested?
   Tested by CI
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to