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

ReplicationCoordinatorExternalState and data replication must not be started after shutdown

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

      It is possible for the ReplicationCoordinatorImpl to call startThreads on the ReplicationCoordinatorExternalState after calling shutdown() on the external state. In this case the ReplicationCoordinatorExternalState should refuse to start.

      Additionally, ReplicationCoordinatorImpl::_startDataReplication may be called after shutdown().
      This calls _externalState->startSteadyStateReplication, which should also do nothing after shutdown.

      Further, if initial sync is required, ReplicationCoordinatorImpl::_startDataReplication should avoid creating the initial syncer after shutdown.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: