Shutting down SingleServerDiscoveryMonitor can lead to a nullptr dereference

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2021-06-28
    • 12
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SingleServerDiscoveryMonitor::_executor is reset as part of SingleServerDiscoveryMonitor::shutdown() but may still be referenced by a task running on the task executor.

      It looks like a similiar issue also affects the non-streamable version of the SingleServerDiscoveryMonitor (--setParameter replicaSetMonitorProtocol=sdam).

            Assignee:
            Haley Connelly
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: