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

Fix race in egress_connection_acquisition_to_wire_metrics.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 7.3.4, 7.0.13, 8.0.0-rc11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • Security 2024-07-08
    • 200

      If a background job increments the totalTimeForEgressConnectionAcquiredToWireMicros metric and prints the corresponding log message after we have cleared the log but before we have gotten the initial metrics value here in egress_connection_acquisition_to_wire_metrics.js, then the test will not wait for the metric to actually be incremented by the intended command, causing the test to fail.

      We can resolve this by clearing the log after the initial metric is obtained.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: