You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siddhant Sangwan (Jira)" <ji...@apache.org> on 2022/12/21 13:46:00 UTC

[jira] [Assigned] (HDDS-7692) Remove usage of MonotonicClock as default Clock used

     [ https://issues.apache.org/jira/browse/HDDS-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddhant Sangwan reassigned HDDS-7692:
--------------------------------------

    Assignee: Siddhant Sangwan

> Remove usage of MonotonicClock as default Clock used
> ----------------------------------------------------
>
>                 Key: HDDS-7692
>                 URL: https://issues.apache.org/jira/browse/HDDS-7692
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Stephen O'Donnell
>            Assignee: Siddhant Sangwan
>            Priority: Major
>
> Similar to 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, 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 message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org