Skip to content

Commit

Permalink
flush kafka on close (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Newhouse authored and mwylde committed May 8, 2024
1 parent 8e5e26c commit 7e69de7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/arroyo-connectors/src/kafka/sink/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ impl ArrowOperator for KafkaSinkFunc {
}

async fn on_close(&mut self, _: &Option<SignalMessage>, ctx: &mut ArrowContext) {
self.flush(ctx).await;
if !self.is_committing() {
return;
}
Expand Down

0 comments on commit 7e69de7

Please sign in to comment.