Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove drop_actors rpc and simplify barrier worker state #18354

Merged
merged 14 commits into from
Sep 6, 2024
Prev Previous commit
Next Next commit
fix ut
wenym1 committed Sep 3, 2024
commit 646078500bc4d5101e62694129242907276b6994
8 changes: 7 additions & 1 deletion src/stream/src/task/barrier_manager.rs
Original file line number Diff line number Diff line change
@@ -443,7 +443,13 @@ impl LocalBarrierWorker {
.map_err(|e| (actor_id, e))?;
}
#[cfg(test)]
LocalBarrierEvent::Flush(sender) => sender.send(()).unwrap(),
LocalBarrierEvent::Flush(sender) => {
use futures::FutureExt;
while let Some(request) = self.control_stream_handle.next_request().now_or_never() {
self.handle_streaming_control_request(request).unwrap();
}
sender.send(()).unwrap()
}
}
Ok(())
}