Skip to content

Expose per-peer committed log index in peer_info#656

Open
xiaoxichen wants to merge 1 commit into
eBay:masterfrom
xiaoxichen:xiaoxchen/expose-peer-commit-idx
Open

Expose per-peer committed log index in peer_info#656
xiaoxichen wants to merge 1 commit into
eBay:masterfrom
xiaoxichen:xiaoxchen/expose-peer-commit-idx

Conversation

@xiaoxichen

Copy link
Copy Markdown

Add last_committed_idx_ to raft_server::peer_info so callers can detect peers that have appended logs but cannot commit them (e.g., due to deadlocked commit threads). The value is populated from the existing peer::get_sm_committed_idx() and is meaningful only when raft_params::track_peers_sm_commit_idx_ is enabled.

@xiaoxichen xiaoxichen requested a review from greensky00 June 22, 2026 04:38
Add `last_committed_idx_` to `raft_server::peer_info` so callers can
detect peers that have appended logs but cannot commit them (e.g., due
to deadlocked commit threads). The value is populated from the existing
`peer::get_sm_committed_idx()` and is meaningful only when
`raft_params::track_peers_sm_commit_idx_` is enabled.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
@xiaoxichen xiaoxichen force-pushed the xiaoxchen/expose-peer-commit-idx branch from c3bde2a to 1c259f3 Compare June 22, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant