unsupportedSyncSource server parameter can cause invariant

XMLWordPrintableJSON

    • Query Integration
    • Minor Change
    • ALL
    • v8.1, v8.0, v7.0
    • Repl 2025-06-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As seen in AF-2729, the unsupportedSyncSource server parameter forces a specific sync source to be chosen, bypassing read preference checks, this means if the specified node becomes primary and the existing node goes into initial sync where we have a initialSyncReadPreference of SecondaryOnly then we can end up hitting this invariant

      This is a pretty niche case, but we should probably modify the invariant line to avoid it from triggering here

            Assignee:
            Kyra Ramesh Krishna (Inactive)
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: