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

Fix data race when reading/writing the logical session id

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.1, 7.2.0-rc0, 7.0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.1, v7.0
    • Sharding EMEA 2023-10-30
    • 119

      The thread in kill_sessions_common.cpp acquires the client lock and reads the logical session id on opCtx, while the thread in sharding_ddl_util.cpp sets a new logical session id without the client lock.

      Consequently, we could end up with a data race at the logical session id from the opCtx.

      A possible solution could be to protect this write with the client lock.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: