Relax invariant in OplogApplicationCoordinator::start()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On a disaggregated-storage standby, two unrelated threads can both decide to start oplog
      application at nearly the same instant. The second one calls
      OplogApplicationCoordinator::start() on a coordinator that is already kRunning and
      trips invariant(_state == State::kDrained), aborting the node (SIGABRT). The fix makes
      start() idempotent: a kRunning coordinator is a no-op instead of a crash.

            Assignee:
            Charlie Swanson
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: