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

Make nested sessions safe

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • FarewellDaniel - 2025-02-18, HappyAddy - 2025-03-04

      In the server code, there are instances where multiple sessions are used in a single thread. If these nested sessions do not use the cache_max_wait_ms=1 config option, they can completely stall cache eviction, as demonstrated in SERVER-61097. We’re going to require all WT_SESSIONs to be managed by a WiredTigerSession wrapper in the server, allowing us to track when we’re opening nested sessions. Trying to open nested sessions will throw an assertion unless the operation opts out of the behaviour after determining that it’s safe to do so.

            Assignee:
            nic.hollingum@mongodb.com Nic Hollingum
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: