Robustify change streams metrics test

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-03-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The change streams metrics test compares various values from two `serverStatus` responses retrieved at two different points in time. The test already takes into account that concurrent background operations could affect the results, but it did not take into account that each `serverStatus` response does not necessarily contain a consistent snapshot of metrics.
      Specifically, the server-side metrics used for `serverStatus` responses are updated in a certain order, so it is possible to get a snapshot in which updates from an operation have only been applied partially. This PR adjusts the change streams metrics test to gracefully handle this situation.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: