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

ReplicationCoordinatorImpl::_handleHeartbeatResponse should check for cancelation before taking mutex

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Repl 2019-05-06
    • Linked BF Score:
      24

      Description

      Per Benjamin 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

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              spencer.jackson Spencer Jackson
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: