Refactor JS tests that enable rsSyncApplyStop

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: