Make getInReplicationRecovery service context decorator atomic

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2024-02-05
    • 135
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As seen in BF-31512, usage of the `inReplicationRecovery` function can produce data races as it accesses an underlying `bool` decorator on the service context. We should make the decorator atomic to avoid these data races.

      Note that this ticket is makred related to SERVER-82619. We considered doing this fix in that ticket, but due to the simplicity of the fix here, we opted to do them in separate tickets.

            Assignee:
            Ali Mir
            Reporter:
            Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: