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

Election handoff schedules a network request under ReplCoord mutex

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      It looks like ReplicationCoordinatorImpl::_performElectionHandoff() is waiting for a remote command while holding the repl coord mutex. Or have I missed something?

      In addition, _performElectionHandoff() is only called from inside ReplicationCoordinatorImpl::stepDown(), and my reading of that function is that the global lock will also be held while _performElectionHandoff is called (although earlier it gets released, it then gets reacquired).

      This code was added in SERVER-35623.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              siyuan.zhou Siyuan Zhou
              Reporter:
              kevin.pulo Kevin Pulo
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: