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

Refactor JS tests that enable rsSyncApplyStop

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • Repl 2020-09-21, Repl 2020-10-05, Repl 2020-10-19

      As we saw in SERVER-50626, we must enable rsSyncApplyStop in a specific way to avoid a race condition. Let's audit all our tests and ensure they use the utility functions in write_concern_util.js instead of enabling rsSyncApplyStop directly.

      Also, the code in write_concern_util.js currently waits for a specific log message to know that the oplog fetcher has reached the rsSyncApplyStop failpoint. Let's use the modern waitForFailPoint command in write_concern_util.js instead.

            Assignee:
            ali.mir@mongodb.com Ali Mir
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: