Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump number of queryExecutor threads in tests #20160

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

losipiuk
Copy link
Member

While by default number of queryExecutor threads is 1000 in tests we limitted it to 10. This values was too small though. If tests are run in parallel all threads may be consumed by long running jobs running EventDrivenFaultTolerantQueryScheduler.Scheduler#run. In such case we are not able to run Future callback which use same executor and are also needed for queries to progress. If that happens test queries would hang.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@losipiuk losipiuk added the no-release-notes This pull request does not require release notes entry label Dec 18, 2023
@losipiuk losipiuk requested review from findepi and dekimir December 18, 2023 21:36
@cla-bot cla-bot bot added the cla-signed label Dec 18, 2023
@@ -43,7 +43,7 @@ public static Map<String, String> getExtraProperties()
.put("exchange.deduplication-buffer-size", "1kB")
.put("fault-tolerant-execution-task-memory", "1GB")
// limit number of threads to detect potential thread leaks
.put("query.executor-pool-size", "10")
.put("query.executor-pool-size", "100")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not convinced the 100 still guarantees thread leak detection
maybe remove // limit number of threads to detect potential thread leaks comment if it is obsolete?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are probably right - but then I think we can just drop this property and keep default 1000

Copy link

This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua

@github-actions github-actions bot added the stale label Jan 11, 2024
While by default number of queryExecutor threads is 1000 in tests we
limitted it to 10. This values was too small though. If tests are run in
parallel all threads may be consumed by long running jobs running
EventDrivenFaultTolerantQueryScheduler.Scheduler#run. In such case we
are not able to run Future callback which use same executor and are also
needed for queries to progress. If that happens test queries would hang.
@losipiuk losipiuk force-pushed the lo/bump-query-executor-size branch from dfdf994 to 03c21fd Compare January 12, 2024 10:54
@losipiuk losipiuk merged commit 6d86004 into trinodb:master Jan 12, 2024
55 of 57 checks passed
@github-actions github-actions bot added this to the 437 milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry stale
Development

Successfully merging this pull request may close these issues.

2 participants