Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDlmMDAyZGNl...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiMDlmMD...
) HHH-13880 (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiMDlmMD...
) Allow to delegate the clearing of JDBC warnings on Connection close to the Connection
Pool implementor (
https://hibernate.atlassian.net/browse/HHH-13880?atlOrigin=eyJpIjoiMDlmMD...
)
Change By: 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 : similarly to
\{\{org.
hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.ConnectionProviderJdbcConnectionAccess#supportsAggressiveRelease
}}
(
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 )