[SERVER-15915] Race condition between replication startup and initAndListen Created: 02/Nov/14  Updated: 19/Nov/14  Resolved: 03/Nov/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc0

Type: Bug Priority: Minor - P4
Reporter: John Esmet Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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

Participants:

 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



 Comments   
Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-15915 Make isself check block until we're listening for incoming network requests
Branch: master
https://github.com/mongodb/mongo/commit/d7e6e0be8f54cfa0b57a6515306c56a38dcdf0d1

Generated at Thu Feb 08 03:39:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.