Skip to content

Commit

Permalink
Reduce concurrent level in ManyShardsIT (#103159) (#103328)
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 #103128

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
dnhatn and elasticmachine authored Dec 12, 2023
1 parent 33d2f6b commit dc3d00e
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 dc3d00e

Please sign in to comment.