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

ReplicationCoordinatorExternalState and data replication must not be started after shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.3, 4.3.3, 4.0.15
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0
    • Sprint:
      Repl 2019-11-04, Repl 2019-12-30
    • Linked BF Score:
      53

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lingzhi.deng Lingzhi Deng
              Reporter:
              matthew.russotto Matthew Russotto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: