Replace awaitReplication with awaitLastOpCommitted in long_secondary_reads.js

XMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • ALL
    • Repl 2025-11-24, Repl 2025-12-08
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using awaitReplication() in long_secondary_reads.js instead of awaitLastOpCommitted() means that the jstest will wait for the lastApplied optime to be propagated and not the lastCommittedOptime. This means that if we do a w: majority read here, then we aren't guaranteed to be able to see all of the writes.

            Assignee:
            Joseph Obaraye
            Reporter:
            Joseph Obaraye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: