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

Fix race condition in retryable writes test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.7.5
    • 3.7.7
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-05-07
    • 27

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: