Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5456

Inject a Clock into Replication Manager to allow timeouts to be tested

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: SCM
    • Target Version/s:

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sodonnell Stephen O'Donnell
                Reporter:
                sodonnell Stephen O'Donnell
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: