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

Make getInReplicationRecovery service context decorator atomic

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2024-02-05
    • 135
    • None
    • 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@mongodb.com Ali Mir
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None