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

make SystemTickSource monotonic everywhere

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Service Arch 2022-11-14
    • 160

      ONLY on macOS it is not monotonic, and this has caused BFs and unpleasant surprises.

      https://jira.mongodb.org/browse/BF-26765

      https://jira.mongodb.org/browse/SERVER-63651

      This isn't hard to fix, and it's very hard to work around it.
      We can use std::chrono::steady_clock if implementations meet our needs,
      or the macOS mach_absolute_time library https://developer.apple.com/library/archive/qa/qa1398/_index.html

      We need the consistent ability to measure small durations to implement fine-grained observability of latencies in the server (PM-2398, INIT-6).

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: