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

Use min(lastDurable, lastApplied) to wait for non-majority write concerns with j=true

    • Replication
    • Fully Compatible
    • Repl 2024-02-19, Repl 2024-03-04
    • 152

      For non-majority write concerns (with a number or tag), we are going to preserve the read-your-write assumption that customers may rely on. Non-majority write concern waits for the specified set of nodes to have their lastDurable (j: true) or lastApplied (j: false) to advance past the write. To preserve the read-your-write assumption, we need to change the j: true case to use min(lastDurable, lastApplied) because oplog entries being durable no longer implies being applied.

      This should be gated by feature flag.

      We may need to come up with a general wait-for-timestamp mechanism that also works for SERVER-85704.

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

              Created:
              Updated:
              Resolved: