Skip to content

Commit

Permalink
Reduce concurrent level in ManyShardsIT (#103159) (#103327)
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
  • Loading branch information
dnhatn committed Dec 12, 2023
1 parent d5e7f35 commit b15677a
Showing 1 changed file with 4 additions and 2 deletions.
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 b15677a

Please sign in to comment.