Skip to content

Commit

Permalink
allow drop subscription barrier command when blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Oct 31, 2024
1 parent 3b8becc commit d9ff9ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/meta/src/barrier/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ impl ScheduledQueue {
if let QueueStatus::Blocked(reason) = &self.status
&& !matches!(
scheduled.command,
Command::DropStreamingJobs { .. } | Command::CancelStreamingJob(_)
Command::DropStreamingJobs { .. }
| Command::CancelStreamingJob(_)
| Command::DropSubscription { .. }
)
{
return Err(MetaError::unavailable(reason));
Expand Down Expand Up @@ -426,6 +428,7 @@ impl ScheduledBarriers {
let table_id = table_fragments.table_id();
cancel_table_ids.insert(table_id);
}
Command::DropSubscription { .. } => {}
_ => {
unreachable!("only drop and cancel streaming jobs should be buffered");
}
Expand Down

0 comments on commit d9ff9ee

Please sign in to comment.