Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10675

Add open_session config to set session name

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 5
    • StorEng - Defined Pipeline

      In WT-10340, we added messages for sessions that "did not run a sweep for 60 minutes", to try to diagnose "rogue" sessions.  The message uses the WT_SESSION->name to show a (supposedly) helpful message.  But this session field is only set when running an internal WT session, it is not user settable.  We should consider having a WT_CONNECTION->open_session config like "name=..." to allow applications to set names, and perhaps have the session name be visible in more messages, our at least available when there is a callback.

      The specific example to motivate this was noticed by louis.williams@mongodb.com . MDB has a session that is used to flush the journal.  It doesn't have any cursor activity, so can't really be a "rogue" session.  The message pops up after about a minute from when mongod starts.  It would be good if the message was tagged with the session name so we would know that it was benign.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: