Skip to content

Commit

Permalink
Avoid exiting http source.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassot committed Jul 14, 2023
1 parent 530e4ae commit abfaee8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions quickwit/quickwit-indexing/src/source/http_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ impl Source for HttpSource {
.find(|(_, partition_counters)| partition_counters.current_offset < u64::MAX)
else {
info!("No more partitions to read from, stopping source.");
ctx.send_exit_with_success(doc_processor_mailbox).await?;
return Err(ActorExitStatus::Success);
info!("Resetting failing URIs and retrying in 1h");
self.uri_with_errors.clear();
return Ok(Duration::from_secs(3600));
};
let uri = partition.0.as_str();
let lines_result: anyhow::Result<Lines<BufReader<Box<dyn AsyncRead + Send + Unpin>>>> =
Expand Down

0 comments on commit abfaee8

Please sign in to comment.