Skip to content

Commit

Permalink
Fix pulsar finalize (#5471)
Browse files Browse the repository at this point in the history
  • Loading branch information
miton18 authored Oct 9, 2024
1 parent 6d3011d commit c141add
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions quickwit/quickwit-indexing/src/source/pulsar_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@ impl Source for PulsarSource {
format!("{:?}", self)
}

async fn finalize(
&mut self,
_exit_status: &ActorExitStatus,
_ctx: &SourceContext,
) -> anyhow::Result<()> {
self.pulsar_consumer.close().await?;
Ok(())
}

fn observable_state(&self) -> JsonValue {
json!({
"index_id": self.source_runtime.index_id(),
Expand Down

0 comments on commit c141add

Please sign in to comment.