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

Refactor JS tests that enable rsSyncApplyStop

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2020-09-21, Repl 2020-10-05, Repl 2020-10-19

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: