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

Add an API to WiredTiger that allows the user to query for internal state.

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: APIs
    • Storage Engines
    • StorEng - Defined Pipeline

      WiredTiger does a good job of hiding internal state from the user. However there are times the user would like to understand the state of the session, connection or transaction that is has, to assert on it and to be able to test it.

      Some recent examples include:

      • Checking if a transaction is active.
      • Getting the value for a previously set config item, e.g. cache_max_wait_ms
      • Checking if wiredtiger behaved expectedly and created the correct number of threads.

      To support all use cases would be a big lift I think, so we'd need to come up with a list of the most useful things to add here. And it may end up being more than a single API. An api like session->in_transaction() would make more sense than a single api like session->get_state which returns a struct of all the things the application might want to know.

      Either way this seem valueable in some form so I am opening this ticket to begin a discussion.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: