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

Election handoff schedules a network request under ReplCoord mutex

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: