-
Notifications
You must be signed in to change notification settings - Fork 150
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
Issue #24805 Make ConnectionPool code more strict and do not return Enlisted resources #25373
base: master
Are you sure you want to change the base?
Conversation
IllegalArgumentException on purpose in the goal to find out why eclipse-ee4j#24805 sometimes occurs. Add new isEnlisted logic in the getResourceFromPool method to possibly fix eclipse-ee4j#24805 Remove getMatchedResourceFromPool method. Status is: passes all 209 "./runtests.sh jdbc_all" tests.
Running the Jakarta EE TCK here (with master merged): https://ci.eclipse.org/jakartaee-tck/job/10/job/eftl-jakartaeetck-run-100/295/ - 👍 passed |
IllegalArgumentException on purpose in the goal to find out why eclipse-ee4j#24805 sometimes occurs. Add new isEnlisted logic in the getResourceFromPool method to possibly fix eclipse-ee4j#24805
…ol "do not return enlisted resource handle logic" is not added in method getResourceFromPool, while the "IllegalSateExceptions for the enlisted state" are added at the end of method getResourceFromPool.
Is there a reason why is this still in a Draft mode? |
@dmatej Just discussed the reason today in #24805 latest comments. |
Changed to ready for review. Assuming now that exposing a Connection from one bean method to another bean method should be possible. |
Make ConnectionPool code more strict and do not return Enlisted resources.
Throw isBusy and enlisted IllegalArgumentExceptions on purpose in the goal to find out why #24805 sometimes occurs.
This allowed me to see ConnectionPool.internalGetResource skip getResourceFromTransaction logic in some cases, and then calling getUnenlistedResource returned an Enlisted resource.
Therefor adding logic:
Add new isEnlisted logic in the getResourceFromPool method to possibly fix #24805 Remove getMatchedResourceFromPool method. Status is: passes all 209 "./runtests.sh jdbc_all" tests.
Also refactored some old TODO statement: replace getMatchedResourceFromPool implementation with a call to getResourceFromPool.