https://bz.apache.org/bugzilla/show_bug.cgi?id=70370

--- Comment #6 from Guenther Demetz <[email protected]> ---
(In reply to Remy Maucherat from comment #5)

> About the statement cache, a cached statement is valid only for the duration
> of its associated connection. So the pool has to retire cached statements
> when closing a connection. 

Sorry, I don't agree with you in this point.
When I give a borrowed connection back to the pool it don't have to close the
physical connection (that would go against the purpose of the pool) and as long
the physical connection is established it should be possible to reuse prepared
statements.


> - Drop the StatementCache interceptor to verify it fixes the issue. If so,
> this confirms the problem is there.

I can confirm this (anyway this is a workaround not a fix)


> - Move to a newer jdbc-pool build post 11.0.20 from
> https://github.com/apache/tomcat/tree/main/modules/jdbc-pool (it is very
> easy to build). It will very likely fix the issue.

As mentioned above I already use the lastest build Tomcat 11.0.29,
until Tomcat 11.0.27 all went fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to