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

XMLWordPrintableJSON

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

      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
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: