[SERVER-28075] Wait for DB works in simulateSuccessfulV1ElectionAt() Created: 23/Feb/17  Updated: 05/Apr/17  Resolved: 24/Feb/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.4.3, 3.5.4

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Repl 2017-03-06
Participants:
Linked BF Score: 0

 Description   

Normal synchronization between the test thread and the executor doesn't consider the DB worker thread, so we should synchronize it explicitly in tests. Otherwise, a second (very soon) election in test will change the state DB worker expects in _writeLastVoteForMyElection().



 Comments   
Comment by Githook User [ 02/Mar/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-28075 Wait for DB works in simulateSuccessfulV1ElectionAt()

(cherry picked from commit ef78254a2bb56df2df0d346e9405df1cffb83d52)
Branch: v3.4
https://github.com/mongodb/mongo/commit/e73cfbddea6d3f5c1499f93878679a768aa97dff

Comment by Githook User [ 24/Feb/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-28075 Wait for DB works in simulateSuccessfulV1ElectionAt()
Branch: master
https://github.com/mongodb/mongo/commit/ef78254a2bb56df2df0d346e9405df1cffb83d52

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