Expose dump() call to be called externally

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines - Server Integration
    • Party@Gregs - 2024-11-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From the storage engine's perspective, there is a debug_info() function that gets called within the MongoDB dump() call. The dump() call currently dumps the systems state whenever something in the system goes wrong. It would be also useful for dump() to be called from the external user perspective with the ability to configure what state to dump in the system. Follow the WiredTiger API documentation here:

      'WT_CONNECTION.debug_info' : Method([
          Config('backup', 'false', r'''
              print incremental backup information''', type='boolean'),
          Config('cache', 'false', r'''
              print cache information''', type='boolean'),
          Config('cursors', 'false', r'''
              print all open cursor information''', type='boolean'),
          Config('handles', 'false', r'''
              print open handles information''', type='boolean'),
          Config('log', 'false', r'''
              print log information''', type='boolean'),
          Config('sessions', 'false', r'''
              print open session information''', type='boolean'),
          Config('txn', 'false', r'''
              print global txn information''', type='boolean'),
      ]),
      

      The benefit will assist storage engine developers to understand what wiredtiger is doing under the hood when help tickets, and BF failures appear.

              Assignee:
              Unassigned
              Reporter:
              Jie Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: