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

Fix #24931 compare with known size of 'usedResourceHandles' instead of theoretical maximum 'maxConnectionPoolSize' #24932

Merged
merged 1 commit into from Apr 23, 2024

Conversation

escay
Copy link
Contributor

@escay escay commented Apr 22, 2024

Fix #24931 compare with known size of 'usedResourceHandles' instead of theoretical maximum 'maxConnectionPoolSize'

Changing logic to test against 'usedResourceHandles', which is tracked for each thread. No longer depend on maxConnectionPoolSize which might be used or not, depending on the machine the test runs on.

…s' instead of

theoretical maximum 'maxConnectionPoolSize'
@escay escay marked this pull request as ready for review April 22, 2024 10:18
@escay

This comment was marked as outdated.

Copy link
Contributor

@dmatej dmatej left a comment

Choose a reason for hiding this comment

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

I tried to figure out the target of the test, but it seems it never was the using maximal capacity. Unfortunately sometimes those 100 tasks are too fast OR scheduler decides to not to start those threads if it noticed they often end waiting on lock. Interesting ...

@dmatej dmatej added this to the 7.0.15 milestone Apr 23, 2024
@dmatej dmatej added bug Something isn't working build and test improvement and removed bug Something isn't working labels Apr 23, 2024
@dmatej dmatej merged commit a0e04b1 into eclipse-ee4j:master Apr 23, 2024
2 checks passed
@escay escay deleted the issue_24931 branch April 23, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Glassfish 7 Java 21 builds fail in ConnectionPoolTest
2 participants