Skip to content

Commit

Permalink
Reduce concurrent level in ManyShardsIT (elastic#103159)
Browse files Browse the repository at this point in the history
This test failed during testing with a single CPU. To prevent test 
failure in such cases, we should lower the concurrency level, ensuring
that it doesn't spawn more than 1000 tasks.

Closes elastic#103128
  • Loading branch information
dnhatn committed Dec 12, 2023
1 parent f51a3c5 commit 60bd2e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ public void testConcurrentQueries() throws Exception {
throw new AssertionError(e);
}
final var pragmas = Settings.builder();
if (canUseQueryPragmas()) {
pragmas.put(randomPragmas().getSettings()).put("exchange_concurrent_clients", between(1, 2));
if (randomBoolean() && canUseQueryPragmas()) {
pragmas.put(randomPragmas().getSettings())
.put("task_concurrency", between(1, 2))
.put("exchange_concurrent_clients", between(1, 2));
}
run("from test-* | stats count(user) by tags", new QueryPragmas(pragmas.build())).close();
});
Expand Down

0 comments on commit 60bd2e2

Please sign in to comment.