Fix race in disagg_storage/status.js between replSetGetStatus and oplog read caused by background writes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      disagg_storage/status.js reads replSetGetStatus and the last oplog entry in two separate commands, asserting the "last applied" optime matches the oplog entry. A background write (e.g. the monitoring-keys-for-HMAC thread) can land in the window between the two reads, advancing the oplog past the status snapshot and causing a spurious Timestamp mismatch failure. 

            Assignee:
            Denis Trailin
            Reporter:
            Denis Trailin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: