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

Lock down WT_CONNECTION inside the WiredTigerConnection

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • SleighTheDay - 2024-12-24, SongingMoose - 2025-01-07, NamePending - 2025-01-21

      To ensure that all cursors/sessions are safe, we want the property that all created sessions from a wrapped connection are also wrapped. To achieve this, the internal WT_CONNECTION must be kept private and all uses of WT_CONNECTION should be migrated to WiredTigerConnection.

       

      This is similar to how we enforce safe usage of wrapped sessions/cursors.

       

      A few problems need to be solved to achieve this:
       - During shutdown the connection is closed and reopened several times, this behaviour needs to be somehow shared with the WiredTigerConnection.

       - event handlers depend on WT_CONNECTION* and we have no good way to map those to WiredTigerConnection

       - the KV engine is a heavy user of the raw WT_CONNECTION, we probably need to wrap its APIs the same way we do with WiredTigerSession and WiredTigerCursor

            Assignee:
            Unassigned Unassigned
            Reporter:
            nic.hollingum@mongodb.com Nic Hollingum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: