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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.15, 6.0.4, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • v6.0, v5.0
    • Execution Team 2022-08-22

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: