Skip to content

Commit

Permalink
Disable timeout on waiting commit types
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Aug 30, 2024
1 parent 1e18d5d commit fbbdc0f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions quickwit/quickwit-ingest/src/ingest_v2/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,14 @@ impl IngestRouterService for IngestRouter {
.try_acquire_many_owned(request_size_bytes as u32)
.map_err(|_| IngestV2Error::TooManyRequests(RateLimitingCause::RouterLoadShedding))?;

let ingest_res = self
.ingest_timeout(ingest_request, ingest_request_timeout())
.await;
let ingest_res = if ingest_request.commit_type() == CommitTypeV2::Auto {
self.ingest_timeout(ingest_request, ingest_request_timeout())
.await
} else {
Ok(self
.retry_batch_persist(ingest_request, MAX_PERSIST_ATTEMPTS)
.await)
};

update_ingest_metrics(&ingest_res, num_subrequests);

Expand Down

0 comments on commit fbbdc0f

Please sign in to comment.