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

Stephen O'Donnell updated HDDS-5456:
------------------------------------
    Description: 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.  (was: Replication Manager current uses Time.monotonicNow() is a 
few places to check if a pending command should be timed out. Currently, this 
is difficult to test without adding sleeps in the test. We should inject a 
Clock object to use rather than making calls to SystemTime to allow tests more 
flexibility.)

> 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
>
> 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