Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/risingwavelabs/risingwave i…
Browse files Browse the repository at this point in the history
…nto li0k/storage_split_group_v2
  • Loading branch information
Li0k committed Sep 18, 2024
2 parents 1da5cff + 0f1984a commit fd8f4b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/meta/src/stream/scale.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,9 @@ impl ScaleController {

for (worker_id, n) in decreased_actor_count {
if let Some(actor_ids) = worker_to_actors.get(worker_id) {
assert!(actor_ids.len() >= n);
if actor_ids.len() < n {
bail!("plan illegal, for fragment {}, worker {} only has {} actors, but needs to reduce {}",fragment_id, worker_id, actor_ids.len(), n);
}

let removed_actors: Vec<_> = actor_ids
.iter()
Expand Down

0 comments on commit fd8f4b0

Please sign in to comment.