Improve WiredTigerStat and WiredTigerCursor in helper.py

XMLWordPrintableJSON

    • Type: Technical Debt
    • Resolution: Fixed
    • Priority: Minor - P4
    • WT12.0.0, 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Test Python
    • None
    • Storage Engines - Persistence
    • SE Persistence - 2026-03-13
    • 2

      WiredTigerStat and WiredTigerCursor in test/suite/helper.py have overlapping behavior: both are wrappers that open/close cursors. WiredTigerStat is for statistics, while WiredTigerCursor is generic but also defaults to "statistics:", which duplicates the statistics role.

      Possible fixes are: keep both classes but require explicit uri in WiredTigerCursor, keep both and make WiredTigerStat delegate to WiredTigerCursor, or merge them into one cursor helper and update existing call sites.

            Assignee:
            Dylan Liang
            Reporter:
            Dylan Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: