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

#7461 Fix flakey ConnectionPoolTest.testQueuedRequestsDontOpenTooManyConnections: #7521

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Feb 2, 2022

Use less strict assertion for expiring pool to account for potential expirations. Since an expiration check is done by the pool every time a connection is released, it is entirely possible (and legal) that a bad scheduling would close some connections; hence the assertion must be relaxed to account for this in the expiring pool case.

Fixes #7461.

@lorban lorban requested a review from sbordet February 2, 2022 14:32
@lorban lorban self-assigned this Feb 2, 2022
@lorban lorban added the Test label Feb 2, 2022
gregw
gregw previously approved these changes Feb 3, 2022
@lorban lorban merged commit a6cd037 into jetty-10.0.x Feb 14, 2022
@lorban lorban deleted the jetty-10.0.x-7461-fix-flakey-testQueuedRequestsDontOpenTooManyConnections branch February 14, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky ConnectionPoolTest.testQueuedRequestsDontOpenTooManyConnections()
4 participants