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

Add sleep to TimeInactiveMicrosShouldBeSetUponUnstashAndStash in session_test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.16
    • Affects Version/s: 4.0.15
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-01-27
    • 0

      This test works by using a real clock and expecting it to advance after setting a transaction inactive. However on some platforms, it is possible for the clock to not advance at least one time quantum before checking the timer, so it fails. In master and 4.2 this is fixed using an injectable ticksource. This isn't available in 4.0, so we need to add a sleep.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: