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

ReplicationCoordinatorImpl::_handleHeartbeatResponse should check for cancelation before taking mutex

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Replication
    • None
    • ALL
    • Repl 2019-05-06
    • 24

    Description

      Per ben.caimano's recent email, task executors are now more aggressive about running callbacks on callers' threads. This means that callbacks should check their provided status argument for whether they're on the caller's thread.

      _handleHeartbeatResponse takes the same mutex that its caller takes. If it runs on the caller's thread, it will deadlock with itself.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              spencer.jackson@mongodb.com Spencer Jackson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: