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

Race condition between replication startup and initAndListen

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.8.0-rc0
    • 2.7.8
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Hide

      Modify the server to sleep for one second after calling logStartup(), which should slow down the initAndListen thread sufficiently to lose a race with the ReplicationExecutor thread pool

      Show
      Modify the server to sleep for one second after calling logStartup(), which should slow down the initAndListen thread sufficiently to lose a race with the ReplicationExecutor thread pool

    Description

      The ReplicationExecutor threadpool may try to do work before the initAndListen thread has reached the connection-accept loop, resulting in brief instability after a server restarts.

      Full discussion: https://groups.google.com/forum/#!topic/mongodb-dev/qiYE6oTK5qc

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            john.esmet@gmail.com John Esmet
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: