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

Fix data race while accessing _recipientCtx

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 7.3.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v7.3, v7.2
    • 107

      As seen in the stack traces of BF-31930, there is a data race while reading the state of the _recipientCtx and updating the _recipientCtx.

      Locking the _mutex (as done here) before reading the state of the _recipientCtx should fix the race.

            Assignee:
            nandini.bhartiya@mongodb.com Nandini Bhartiya
            Reporter:
            nandini.bhartiya@mongodb.com Nandini Bhartiya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: