ReplicaSetMonitor throws to the top of the event loop

XMLWordPrintableJSON

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

      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:
            Benjamin Caimano (Inactive)
            Reporter:
            Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: