Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14906

Investigate changes in SERVER-54909: In replSetGetStatus, report last durable and last applied operation wall times for all members

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.2.0, 4.4.11, 5.0.5, 5.1.1
    • manual, Server
    • None
    • 2
    • ServerDocs2022: Jan11 - Jan18
    • true

    Description

      Downstream Change Summary

      New fields in replSetGetStatus: "lastAppliedWallTime" and "lastDurableWallTime" now included for each member in the config.

      Description of Linked Ticket

      Beginning in 4.2, MongoDB records the wall clock time at which the primary processes each operation with millisecond granularity and records the value in the oplog. Secondary nodes report these values back to the primary node when the issue replSetUpdatePosition, and the information is duly recorded in the TopologyCoordinator's data structure of member data.

      If we went a step further and reported these values in the output of replSetGetStatus, it would be possible to calculate and report the primary's estimate of each secondary's replication lag in milliseconds. Presently, the optime is used to approximate this calculation, but it only has whole-second granularity, and due to monotonicity requirements can be incorrect for a long time after a clock adjustment on the primary node.

      So, we should add, to each element of the members field returned in replSetGetStatus's response, that member's most recently reported last durable and last applied operation wall clock timestamps.

      Attachments

        Issue Links

          Activity

            People

              joseph.dougherty@mongodb.com Joseph Dougherty
              backlog-server-pm Backlog - Core Eng Program Management Team
              Joseph Dougherty Joseph Dougherty
              Jason Price Jason Price
              Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                37 weeks ago