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

ReplicaSetMonitor throws to the top of the event loop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      55

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: