[SERVER-25678] race in data_replicator_test between playResponses and InitialSyncBackgroundRunner Created: 17/Aug/16  Updated: 25/Jan/17  Resolved: 18/Aug/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2016-08-29
Participants:
Linked BF Score: 0

 Description   

In InitialSyncTest::playResponses, it's possible for the next ready request to be canceled by DataReplicator::_cancelAllHandles_inlock() after getNextReadyRequest() returns true.

https://github.com/mongodb/mongo/blob/965066ff4441f95ca757a6a9845fc1b70213e11e/src/mongo/db/repl/data_replicator_test.cpp#L656

                auto noi = net->getNextReadyRequest();
                if (isOplogGetMore(noi)) {



 Comments   
Comment by Githook User [ 18/Aug/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-25678 fixed race in InitialSyncTest::playResponses()
Branch: master
https://github.com/mongodb/mongo/commit/2b3eb2cb5461dc44902a0c93b9042f43668a4119

Generated at Thu Feb 08 04:09:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.