Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTFkNDE4NDky...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiYTFkND...
) HHH-13880 (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiYTFkND...
) Allow to delegate the clearing of JDBC warnings on Connection close to the Connection
Pool implementor (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiYTFkND...
)
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created:
26/Feb/2020 05:19 AM Fix Versions: 5.4.13 Priority: Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We noticed that:
* Invoking java.sql.Connection#clearWarnings is not very efficient on several JDBC
drivers
* Hibernate ORM clears such warnings before closing each connection and returning it to
the connection pool
* Some connection pool implementations such as Agroal (and likely most others too?) will
also clear such warnings when the connection is returned to the pool.
It seems sensible to allow this clearWarnings operation to happen once at most; since this
capability depends on the Connection Pool I will introduce a new flag on the pool: at this
stage I don't expect to make this a configurable user property, but allow the
implementors of ConnectionProvider to hint about this capability.
(
https://hibernate.atlassian.net/browse/HHH-13880#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13880#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:cefda43 )