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

Improve concurrency control in TestSystemConnector #14171

Conversation

findepi
Copy link
Member

@findepi findepi commented Sep 16, 2022

Fix a race in testQueryDuringAnalysisIsCaptured. The test waits until query is FINISHED, but the thread calling getQueryRunner().execute may not have finished yet, so the Future is not done.

Also, improve concurrency in testQueryKillingDuringAnalysis. Sleeps are not necessary to wait until query is started.

Hopefully fixes #14170

Fix a race in `testQueryDuringAnalysisIsCaptured`.
The test waits until query is FINISHED, but the thread calling
`getQueryRunner().execute` may not have finished yet, so the Future is
not done.

Also, improve concurrency in `testQueryKillingDuringAnalysis`. Sleeps
are not necessary to wait until query is started.
@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Sep 16, 2022
@cla-bot cla-bot bot added the cla-signed label Sep 16, 2022
@kokosing
Copy link
Member

Thank you

@findepi findepi merged commit e8a1a79 into trinodb:master Sep 19, 2022
@findepi findepi deleted the findepi/improve-concurrency-control-in-testsystemconnector-0978b5 branch September 19, 2022 09:00
@github-actions github-actions bot added this to the 397 milestone Sep 19, 2022
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 test
Development

Successfully merging this pull request may close these issues.

Flaky test TestSystemConnector.testQueryDuringAnalysisIsCaptured
2 participants