mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-8210 JdbcCoordinatorImpl logs excessive warnings with some
connection pools
This commit is contained in:
parent
97304a291d
commit
4ee9ade353
@ -420,7 +420,9 @@ public void register(ResultSet resultSet, Statement statement) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( statement != null ) {
|
if ( statement != null ) {
|
||||||
if ( LOG.isEnabled( Level.WARN ) && !xref.containsKey( statement ) ) {
|
// Keep this at DEBUG level, rather than warn. Numerous connection pool implementations can return a
|
||||||
|
// proxy/wrapper around the JDBC Statement, causing excessive logging here. See HHH-8210.
|
||||||
|
if ( LOG.isEnabled( Level.DEBUG ) && !xref.containsKey( statement ) ) {
|
||||||
LOG.unregisteredStatement();
|
LOG.unregisteredStatement();
|
||||||
}
|
}
|
||||||
Set<ResultSet> resultSets = xref.get( statement );
|
Set<ResultSet> resultSets = xref.get( statement );
|
||||||
@ -447,7 +449,9 @@ public void release(ResultSet resultSet, Statement statement) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( statement != null ) {
|
if ( statement != null ) {
|
||||||
if ( LOG.isEnabled( Level.WARN ) && !xref.containsKey( statement ) ) {
|
// Keep this at DEBUG level, rather than warn. Numerous connection pool implementations can return a
|
||||||
|
// proxy/wrapper around the JDBC Statement, causing excessive logging here. See HHH-8210.
|
||||||
|
if ( LOG.isEnabled( Level.DEBUG ) && !xref.containsKey( statement ) ) {
|
||||||
LOG.unregisteredStatement();
|
LOG.unregisteredStatement();
|
||||||
}
|
}
|
||||||
final Set<ResultSet> resultSets = xref.get( statement );
|
final Set<ResultSet> resultSets = xref.get( statement );
|
||||||
|
@ -1342,7 +1342,9 @@ void unableToWriteCachedFile(String path,
|
|||||||
@Message(value = "ResultSet had no statement associated with it, but was not yet registered", id = 386)
|
@Message(value = "ResultSet had no statement associated with it, but was not yet registered", id = 386)
|
||||||
void unregisteredResultSetWithoutStatement();
|
void unregisteredResultSetWithoutStatement();
|
||||||
|
|
||||||
@LogMessage(level = WARN)
|
// Keep this at DEBUG level, rather than warn. Numerous connection pool implementations can return a
|
||||||
|
// proxy/wrapper around the JDBC Statement, causing excessive logging here. See HHH-8210.
|
||||||
|
@LogMessage(level = DEBUG)
|
||||||
@Message(value = "ResultSet's statement was not registered", id = 387)
|
@Message(value = "ResultSet's statement was not registered", id = 387)
|
||||||
void unregisteredStatement();
|
void unregisteredStatement();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user