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

Add undocumented debug API

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage 2017-09-11

      In discussions with daniel.gottlieb it would be helpful, particularly in the coming weeks, to have an API the user can call to show/dump various parts of the system.

      It could take a config arg for the subsystem to dump information:

      • open cursors (their state, uri, session, is it positioned or reset)
      • open sessions
      • open data handles, reference counts, uri/filename
      • global txn table
      • cache dump
      • all information

      Additionally, it would be nice to have the ability to set certain locations to give stack traces on certain errors. I.e. in early testing we may be doing serial operations and don't expect a WT_ROLLBACK or EBUSY return. Add code where those are (most likely) returned so that if the debug option is set we can print a stack trace at that time.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: