Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68853

Remove invariant that a session stat needs to be a slow op stat

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.15, 6.0.4, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0, v5.0
    • Execution Team 2022-08-22

      WiredTigerOperationStats::toBSON() has an invariant that gets triggered if WiredTiger adds a new session statistic without adding that stat into the storage's slow operation statistics:

           for (auto const& stat : _stats) {
               // Find the user consumable name for this statistic.
               auto statIt = _statNameMap.find(stat.first);
               invariant(statIt != _statNameMap.end());
      

      WT-8848 is adding a session statistic that is not going to be a part of slow operation statistics. Remove the invariant and just ignore the statistic that is not part of the _statNameMap.

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: