ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1024
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2026-09-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ReplicaSetTest waitForState can accept either a single state or an array of states. Secondary state is not allowed to be passed in here, but if you pass it in as part of a list we skip the check that would fail the function call. This is incorrect because this function checks the state as reported by the primary node, so the state can be stale.

      Add a new function to check this nodes state directly which is safe to be used for a list of states that includes secondaries

            Assignee:
            Sean Zimmerman
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: