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

ResourceConsumptionMetricsTest busy waits based on discontinuous system time

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2020-12-28
    • 0

      The spinFor helper could be subject to time discontinuities and not perform any significant work.

      I'm not sure if that could result in measuring 0 elapsed time in nanoseconds, but I want to rule that out as an option.

      Do something similar to the OperationCpuTimerTest that sleeps on a different thread and busy waits for it to complete.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: