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

Remy Maucherat <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Remy Maucherat <[email protected]> ---
(In reply to Guenther Demetz from comment #6)
> (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.

Yes, no problem.

> 
> > - 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.

I meant post 11.0.29.

So the revert of PR#677 will be in 11.0.30, 10.1.63, and 9.0.125.

-- 
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