[SERVER-75842] Make sure to access _rsConfigState under lock. Fix test to cover all uninitalized confitions Created: 07/Apr/23 Updated: 29/Oct/23 Resolved: 12/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Russotto | Assignee: | Matthew Russotto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Repl 2023-04-17 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 34 | ||||||||||||
| Description |
|
In waitUntilOpTimeForReadUntil, we access _rsConfigState without the repl lock, which is invalid. Additionally, we need to test that _rsConfig.isInitialized() even if _rsConfigState isn't one of the uninitialized config states, because we might be in the middle of the first heartbeat reconfig, which is also an uninitialized state. |
| Comments |
| Comment by Githook User [ 11/Apr/23 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: |