Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75842

Make sure to access _rsConfigState under lock. Fix test to cover all uninitalized confitions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Repl 2023-04-17
    • 34

      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.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: