Skip to content

Commit

Permalink
Merge pull request #24404 from bharathv/fix_step_down
Browse files Browse the repository at this point in the history
raft/c: fix an indefinite hang in transfer leadership
  • Loading branch information
bharathv authored Dec 5, 2024
2 parents 614acfc + d0a562b commit f091e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/raft/recovery_stm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ recovery_stm::recovery_stm(
, _ctxlog(
raftlog,
ssx::sformat(
"[follower: {}] [group_id:{}, {}]",
"[follower: {}, term: {}] [group_id:{}, {}]",
_node_id,
_term,
_ptr->group(),
_ptr->ntp()))
, _memory_quota(quota) {}
Expand Down
1 change: 1 addition & 0 deletions src/v/raft/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void follower_index_metadata::reset() {
last_successful_received_seq = follower_req_seq{0};
inflight_append_request_count = 0;
last_sent_protocol_meta.reset();
follower_state_change.broadcast();
}

std::ostream& operator<<(std::ostream& o, const vnode& id) {
Expand Down

0 comments on commit f091e28

Please sign in to comment.