Skip to content

Commit

Permalink
Skip jobs when reinitializing to Faulted (#1583)
Browse files Browse the repository at this point in the history
Fixes #1579 (hopefully)
  • Loading branch information
mkeeter authored Dec 2, 2024
1 parent ece8a48 commit 5a41b82
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion upstairs/src/downstairs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,14 @@ impl Downstairs {
// Specifically, we want to skip jobs if the only path back online for
// that client goes through live-repair; if that client can come back
// through replay, then the jobs must remain live.
if matches!(self.clients[client_id].state(), DsState::LiveRepair) {
let client_state = self.clients[client_id].state();
if matches!(
client_state,
DsState::LiveRepair | DsState::LiveRepairReady
) || matches!(
client_state,
DsState::Active | DsState::Offline if !self.can_replay
) {
self.skip_all_jobs(client_id);
}

Expand Down

0 comments on commit 5a41b82

Please sign in to comment.