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

Fix race condition in retryable writes test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.7
    • Affects Version/s: 3.7.5
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-05-07
    • 27

      When running the failpoint tests on a replica set, it's possible for a race condition to exist in a find here. We will catch the exception a couple of lines above, but we can't verify with 100% accuracy that the write will have succeeded before the find is executed. To solve this race condition, we can change the assert.eq to an assert.soon.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: