siddhantsangwan opened a new pull request, #4121: URL: https://github.com/apache/ozone/pull/4121
## What changes were proposed in this pull request? From the jira: > Similar to [HDDS-7463](https://issues.apache.org/jira/browse/HDDS-7463), we are seeing that commands sent from SCM to the datanodes are being expired when they should not be. This is because we are getting the command deadline from MonotonicClock and then comparing that with the current time, also gotten from MonotonicClock on the datanodes. As we discovered in [HDDS-7463](https://issues.apache.org/jira/browse/HDDS-7463), the "Time" monotonic clock uses is not system time, but some arbitrary reference point in the JVM. We cannot use the time from monotonic clock to compare times across JVM restarts, or in different JVMs. For that reason, I believe it would be safer to replace any usages of Monotonic clock with java.util.SystemClock. This PR replaces usages of `MonotonicClock` with `SystemClock` from `Clock` in the `java.time` package. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-7692 -- 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]
