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

ServerStatus uptime should be monotonic

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • ALL

      As a user of the uptime fields in a serverStatus (uptime, uptimeMillis, uptimeEstimate) I would expect that these values are based off of a monotonic clock that never goes backwards in time. Our use case was trying to determine if a server has been restarted or not by seeing if the uptime decreased. However looking at the code, the uptime is based off a wall clock, which may be subject to drift corrections leading to decreases in reported uptime. Instead the uptime should use something like a steady clock which has monotonic guarantees.

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.stone@mongodb.com James Stone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: