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

Server can crash if started and then immediately shut down

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 7.3.0-rc3
    • Affects Version/s: 7.2.1, 7.3.0-rc0
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • ALL
    • v7.3, v7.2
    • Service Arch 2024-02-19
    • 113

      If a server is started and then quickly shutdown, there's a chance that it may trigger the following invariant: https://github.com/10gen/mongo/blob/8e8e6658eecd1d1a9b76d073bbcff272a8056be9/src/mongo/transport/asio/asio_transport_layer.cpp#L1229

      This because setup will add acceptor records, but shutdown will change the listener state such that the ingress branch is not taken, leading to the invariant being checked. We should split the condition so that even if the listener state is not kNew, we don't check for this invariant.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: