Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36697

Use virtual clock for transactions metrics unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.4
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Repl 2018-09-10, Repl 2018-09-24, Repl 2018-10-08
    • Linked BF Score:
      34

      Description

      Currently, many of the unit tests for transactions metrics in transaction_participant_test.cpp use real time sleeps in order to measure the passage of time and to check assertions.This can make the tests flaky and also slow. We should try to virtualize the clock source used for these tests to circumvent these issues.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              william.schultz William Schultz (Inactive)
              Reporter:
              william.schultz William Schultz (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: