Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add absolute timestamp RaftMetrics::last_quorum_acked #94

Closed
wants to merge 1 commit into from

Commits on Jul 24, 2024

  1. Feature: add absolute timestamp RaftMetrics::last_quorum_acked

    `RaftMetrics::last_quorum_acked` is the absolute timestamp of the most
    recent time point that is accepted by a quorum via `AppendEntries` RPC.
    This field is a wrapped `Instant` type: `SerdeInstant` which support
    serde for `Instant`. This field is added as a replacement of
    `millis_since_quorum_ack`, which is a relative time.
    
    `SerdeInstant` serialize `Instant` into a string formatted as
    "%Y-%m-%dT%H:%M:%S%.9f%z", e.g., "2024-07-24T04:07:32.567025000+0000".
    
    Note: Serialization and deserialization are not perfectly accurate and
    can be indeterministic, resulting in minor variations each time. These
    deviations(could be smaller or greater) are typically less than a
    microsecond (10^-6 seconds).
    drmingdrmer committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    908b5c0 View commit details
    Browse the repository at this point in the history