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

multiApply() should return early on any writer thread errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2018-03-12

      Currently in multiApply(), which takes a vector of oplog entries and distributes them across a set of writer threads to apply in parallel, any errors reported by the writer threads are stored in statusVector and returned at the end of the function. It may be possible to exit this function early after all the writer threads have finished running here on any writer errors instead of running the post oplog application steps. This should be fine because we will abort the process during steady state replication, and the initial synced will reset the database state before retrying.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: