[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:
Depends
Duplicate
is duplicated by SERVER-74149 _rsConfigState should be protected by... Closed
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: SERVER-75842 Make sure to access _rsConfigState under lock. Fix test to cover all uninitalized conditions
Branch: master
https://github.com/mongodb/mongo/commit/1f837f20fd52ecc5e2704a59313c14bf06784202

Generated at Thu Feb 08 06:31:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.