[SERVER-50607] Must hold mutex when calling _checkForShutdownAndConvertStatus_inlock Created: 28/Aug/20 Updated: 29/Oct/23 Resolved: 02/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0, 4.2.10, 4.4.2, 4.0.21 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Russotto | Assignee: | Matthew Russotto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | thread-sanitizer | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.4, v4.2, v4.0
|
||||||||
| Sprint: | Repl 2020-09-21 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
We must hold the initial syncer mutex when calling _checkForShutdownAndConvertStatus_inlock in _startInitialSyncAttemptCallback. We should probably convert our _inlock calls to WithLock in general. |
| Comments |
| Comment by Githook User [ 22/Sep/20 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: (cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2) |
| Comment by Githook User [ 22/Sep/20 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: (cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2) |
| Comment by Githook User [ 22/Sep/20 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: (cherry picked from commit a5ed6a52228efbaad71aa62324a36740fc8877a2) |
| Comment by Githook User [ 02/Sep/20 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: |