Skip to content

Commit

Permalink
Fix pulsar finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
miton18 committed Oct 3, 2024
1 parent 060dfd8 commit 8c547ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,14 @@ impl Source for PulsarSource {
format!("{:?}", self)
}

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

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

0 comments on commit 8c547ab

Please sign in to comment.