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

Eliminate the unnecessary majority check in wait for write concern

    • Replication
    • Fully Compatible
    • Repl 2023-11-27, Repl 2023-12-11
    • 5

      For majority write concern, in addition to waiting for the committed snapshot to advance past the write, it also waits for a majority of nodes to have their lasDurable (j: true) or lastApplied (j: false) to advance past the write. In fact waiting for the committed snapshot is sufficient in most cases and so the additional wait is usually a no-op and only needed when writeConcernMajorityJournalDefault is false and j: true. We can change it to only perform the additional wait in that particular case.

      We can also remove the wait for drop pending collections step as part of waiting for majority since that's no longer necessary today.

            Assignee:
            kishore.devireddy@mongodb.com Kishore Devireddy
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: