Skip to content

Commit

Permalink
[consensus] Add failpoint for leader schedule change (#17732)
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-koshy authored May 15, 2024
1 parent bc60e8c commit 33c110b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions consensus/core/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ impl Core {
commits_until_update = self
.leader_schedule
.commits_until_leader_schedule_update(self.dag_state.clone());

fail_point!("consensus-after-leader-schedule-change");
}
assert!(commits_until_update > 0);

Expand Down
1 change: 1 addition & 0 deletions crates/sui-benchmark/tests/simtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ mod test {
"consensus-store-before-write",
"consensus-store-after-write",
"consensus-after-propose",
"consensus-after-leader-schedule-change",
],
move || {
handle_failpoint(
Expand Down

0 comments on commit 33c110b

Please sign in to comment.