pub struct ReplicaSnapshot {Show 14 fields
pub scope: Scope,
pub status: Status,
pub journal: JournalSnapshot,
pub accepted: Prefix,
pub committed: Prefix,
pub applied: Prefix,
pub pending_operations: usize,
pub pending_body_bytes: usize,
pub live_base: OpNumber,
pub retained_limits: PipelineLimits,
pub journal_tail: Option<Prefix>,
pub backups: Option<[(NodeId, OpNumber); 2]>,
pub known_commit: OpNumber,
pub ready_for_appends: bool,
}Expand description
Read-only normal state, suitable for adapter scheduling and invariant checks.
Fields§
§scope: ScopeCurrent group/configuration/view identity.
status: StatusWhether normal protocol actions are still allowed.
journal: JournalSnapshotIndependent local write and synchronization evidence.
accepted: PrefixHighest validated, contiguous canonical operation.
committed: PrefixHighest contiguous quorum-committed operation under the configured policy.
applied: PrefixHighest operation reported applied by the deterministic state adapter.
pending_operations: usizeRetained live descriptors awaiting application or local persistence.
Excludes a disk-backed journal_tail.
pending_body_bytes: usizeLive canonical body bytes reserved in the external payload adapter.
live_base: OpNumberOperations above this number occupy the primary’s live window: the commit it announced or the released prefix, whichever is later.
retained_limits: PipelineLimitsDescriptor and body capacity this role retains beyond its released prefix.
journal_tail: Option<Prefix>Installed/recovered suffix retained only in the journal, not the live descriptor ring. Fresh work waits until this entire tail is applied.
backups: Option<[(NodeId, OpNumber); 2]>Primary only: the highest operation each backup acknowledged.
known_commit: OpNumberHighest commit the primary announced, as this replica knows it.
ready_for_appends: boolWhether new operations may be admitted. Duplicates can still be retried while an installed primary reestablishes its selected-tail quorum. Entries inside a disk-backed tail require journal lookup, not descriptor retries.