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

Use virtual clock for transactions metrics unit tests

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.4
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Repl 2018-09-10, Repl 2018-09-24, Repl 2018-10-08
    • 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

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: