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

Race condition between replication startup and initAndListen

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc0
    • Affects Version/s: 2.7.8
    • Component/s: 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

      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

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

              Created:
              Updated:
              Resolved: