Add query stats error metrics plumbing

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Sub-ticket for SERVER-87657.

      Add the shared query-stats entry, store, and serialization changes needed to surface errors. Guard the new behavior under an IFR-eligible feature flag; error-path-specific updates will be handled in follow-on tickets. Specific changes:

      • Add execCountErrored to the query stats entry and update execCount semantics to count both successes and errors.
      • Add the internalQueryStatsMaxErrorCodesPerShape knob.
      • Add a bounded per-shape error list implemented as an LRU-style cache that stores {code, count, latestSeenTimestamp} for up to internalQueryStatsMaxErrorCodesPerShape entries.
      • In $queryStats output, serialize each stored error code as {code, codeName, count, latestSeenTimestamp}, resolving codeName via ErrorCodes::errorString() at read/serialization time.

            Assignee:
            Kritika Singh (Inactive)
            Reporter:
            Kritika Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: