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

Amend read preference section in replication arch guide to indicate state checks are best effort

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2024-05-13

      In the replication arch guide's read preference section, we imply that sending `primary` read preference operations to a secondary should always fail. There are small edge cases where this is not true — ever since lock-free reads, state transitions happen independently from read operations. It's possible that a primary receives an operation with `primary` read preference, validates the preference state combo, and then steps down while the read is executing. We should amend the replication arch guide to clarify that the read preference selection is best-effort when combined with state changes.

      There is also a formatting error with a link for `secondaryAllowed` that we should fix.

            Assignee:
            ali.mir@mongodb.com Ali Mir
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: