Skip to content

Commit

Permalink
Replace error! with bail! in GlobalBarrierManagerContext for ea…
Browse files Browse the repository at this point in the history
…rly termination on fail

Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky committed Oct 24, 2024
1 parent f637d0f commit 3b99734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta/src/barrier/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::time::Duration;

use anyhow::{anyhow, Context};
use itertools::Itertools;
use risingwave_common::bail;
use risingwave_common::catalog::TableId;
use risingwave_common::config::DefaultParallelism;
use risingwave_common::hash::WorkerSlotId;
Expand Down Expand Up @@ -541,7 +542,7 @@ impl GlobalBarrierManagerContext {
info!("integrity check passed");
}
Err(_) => {
error!("integrity check failed");
bail!("integrity check failed");
}
}

Expand Down

0 comments on commit 3b99734

Please sign in to comment.