Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Aug 9, 2024
1 parent 00d066d commit da01704
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/stream/src/executor/backfill/cdc/cdc_backfill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,17 @@ impl<S: StateStore> CdcBackfillExecutor<S> {
&& *new_rate_limit != self.rate_limit_rps
{
self.rate_limit_rps = *new_rate_limit;
// rebuild the new reader stream with new rate limit
continue 'backfill_loop;
// staging the barrier for post processing
pending_barrier = Some(barrier);
tracing::info!(
table_id,
?current_pk_pos,
?snapshot_read_row_cnt,
"Break snapshot loop to apply rate limit"
);
// break the snapshopt read loop,
// so that we can rebuild the new snapshot stream with the new rate limit
break;
}
}
Mutation::Update(UpdateMutation {
Expand Down

0 comments on commit da01704

Please sign in to comment.