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

Replication should not have multiple active OperationContexts on the same thread

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: None
    • Component/s: Replication
    • None

      Currently there are two call stacks which do that:

       m31000|  mongod(mongo::OperationContextImpl::OperationContextImpl() 0xF4) [0xaf3e34]
       m31000|  mongod(mongo::repl::startMasterSlave() 0x1A) [0xc37ada]
       m31000|  mongod(mongo::repl::ReplicationCoordinatorImpl::startReplication(mongo::OperationContext*) 0xE0) [0xc61c40]
       m31000|  mongod(mongo::initAndListen(int) 0x1954) [0x7e3744]
      

      and

       m31100|  mongod(mongo::OperationContextImpl::OperationContextImpl() 0xF4) [0xaf3e34]
       m31100|  mongod(mongo::repl::ReplicationCoordinatorExternalStateImpl::createOperationContext(std::string const&) 0x34) [0xc552f4]
       m31100|  mongod(mongo::repl::ReplicationCoordinatorImpl::signalDrainComplete() 0xAB) [0xc64c9b]
       m31100|  mongod(mongo::repl::SyncTail::tryPopAndWaitForMore(mongo::repl::SyncTail::OpQueue*, mongo::repl::ReplicationCoordinator*) 0x34D) [0xccd40d]
       m31100|  mongod(mongo::repl::SyncTail::oplogApplication() 0x450) [0xcceb10]
       m31100|  mongod(mongo::repl::runSyncThread() 0x1DF) [0xcc576f]
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: