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

Fix data race in setting/getting the logical session ID

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Replication
    • ALL
    • 11

      The reading thread in kill_sessions_common.cpp does acquire the client lock to access the logical session id on opCtx, the writing thread in transaction_oplog_application does not. As a result, we may have a read after write data race while accessing the logical session id.

      A potential suggestion would be for the writing thread to also acquire the client lock before setting the logical session id.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            celina.tala@mongodb.com Celina Tala
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: