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

Fix Data Race in ReshardingCollectionCloner

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.1, 7.3.0-rc0
    • Affects Version/s: 7.1.0, 7.3.0-rc0, 7.2.0
    • Component/s: Sharding
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v7.2
    • Cluster Scalability 2024-1-22
    • 135

      Similar to SERVER-82324, the thread in kill_sessions_common.cpp acquires the client lock and reads the logical session id on opCtx, while the thread in resharding_collection_cloner.cpp sets a new logical session id without the client lock.

      See this comment for full context.

      It didn't reproduce locally or in a patch, but it seems like we are pretty confident in the problem and solution based on the stack trace and similar issues in the past.

            Assignee:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: