Skip to content

Conversation

@psteitz
Copy link
Contributor

@psteitz psteitz commented Dec 25, 2025

Fixes the regression in the fix for POOL-425, which made addObject no-op when maxIdle is negative (no limit). Also fixes the race condition identified in POOL-426.

@rajucomp
Copy link

@psteitz Could you also include the additional tests at https://github.com/apache/commons-pool/pull/451/changes as well ? There is an additional test for POOL-413 as well and I think this fixes POOL-413 as well. Thanks!

@garydgregory
Copy link
Member

Hello @rajucomp and @rajucomp

If I apply #451 to this PR locally (and edit to resolve the conflict), the tests pass and I get 2 checkstyle errors, so the test is OK. It might be cleaner for #451 to change and not use the same test method name as in this PR.

I can bring both PRs in if you are both OK with the changes.

@rajucomp
Copy link

rajucomp commented Dec 26, 2025

@garydgregory

I don't think #451 fixes POOL-413 as per my investigation. If you run all the tests, the tests seems to pass but if you run the test only in isolation, it will fail. Not sure what's going on there. @psteitz could you confirm this ?
I think you can skip #451 as the current PR in the state at #452 contains the fix for POOL-426. Let's merge with the existing changes.
It would be better if we close #451 and try to fix POOL-413 in a separate PR #453.
This would keep the history clean and short and easy to review. Let me know what you both think.

Happy Holidays to you awesome folks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants