[SERVER-40623] Check _currentCommittedSnapshot is set after waking from condition_variable in replication_coordinator_impl.cpp Created: 12/Apr/19  Updated: 29/Oct/23  Resolved: 15/Apr/19

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

Type: Bug Priority: Major - P3
Reporter: Jason Chan Assignee: Jason Chan
Resolution: Fixed 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 2019-04-22
Participants:
Linked BF Score: 23

 Description   

We should check the condition that _currentCommittedSnapshot is set here after waking up. According to the standard it is possible for a spurious wakeup to occur where the thread is awoken even though no thread signaled the condition variable. This behavior was seen in a build failure.



 Comments   
Comment by Githook User [ 15/Apr/19 ]

Author:

{'name': 'Jason Chan', 'username': 'jasonjhchan', 'email': 'jason.chan@10gen.com'}

Message: SERVER-40623 Check _currentCommittedSnapshot is set after waking from condition variable in replication_coordinator_impl.cpp
Branch: master
https://github.com/mongodb/mongo/commit/4557a6468bc8bfc28833eb7fcde04ee039e804b4

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