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

ReplicaSetMonitor throws to the top of the event loop

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • ALL
    • 55

      The replica set monitor throws in Refresher::scheduleNetworkRequests if the underlying executor refuses work. This can cause an exception to throw up to the top of the event loop and terminate the process. It only happens on shutdown, but we should do a better job there and not crash in that scenario.

      See where we uassertStatusOK and where we call scheduleNetworkRequests without a try/catch block in a callback

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: