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

Stephen O'Donnell resolved HDDS-5456.
-------------------------------------
    Fix Version/s: 1.2.0
       Resolution: Fixed

> Inject a Clock into Replication Manager to allow timeouts to be tested
> ----------------------------------------------------------------------
>
>                 Key: HDDS-5456
>                 URL: https://issues.apache.org/jira/browse/HDDS-5456
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: SCM
>            Reporter: Stephen O'Donnell
>            Assignee: Stephen O'Donnell
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>
> Replication Manager current uses Time.monotonicNow() in a few places to check 
> if a pending command should be timed out. Currently, this is difficult to 
> test without adding sleeps in the tests. We should inject a Clock object to 
> use rather than making calls to SystemTime to allow tests more flexibility.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to