Skip to content

Commit ce4501f

Browse files
committed
Try smaller batches
1 parent 10bdda8 commit ce4501f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

quickwit/quickwit-integration-tests/src/tests/ingest_v2_tests.rs

+14-8
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,20 @@ async fn test_ingest_v2_high_throughput() {
359359
let line = json!({"body": "my dummy repeated payload"}).to_string();
360360
let num_docs = body_size / line.len();
361361
let body = std::iter::repeat_n(&line, num_docs).join("\n");
362-
let ingest_resp = ingest(
363-
&sandbox.rest_client(QuickwitService::Indexer),
364-
index_id,
365-
IngestSource::Str(body),
366-
CommitType::Auto,
367-
)
368-
.await
369-
.unwrap();
362+
let ingest_resp = sandbox
363+
.rest_client(QuickwitService::Indexer)
364+
.ingest(
365+
index_id,
366+
IngestSource::Str(body),
367+
// TODO: when using the default 10MiB batch size, we get persist
368+
// timeouts with code 500 on some lower performance machines (e.g.
369+
// Github runners). We should investigate why this happens exactly.
370+
Some(5_000_000),
371+
None,
372+
CommitType::Auto,
373+
)
374+
.await
375+
.unwrap();
370376
assert_eq!(ingest_resp.num_docs_for_processing, num_docs as u64);
371377
assert_eq!(ingest_resp.num_ingested_docs, Some(num_docs as u64));
372378
assert_eq!(ingest_resp.num_rejected_docs, Some(0));

0 commit comments

Comments
 (0)