You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SpringManagedTransaction.openConnection() method, if line 80 creates a new database connection, the conditional check at line 81 will always evaluate to true. This occurs because the newly created connection is already stored in threadlocal storage during the preceding steps. As a result, line 82 will log that the connection is "managed by Spring transactions", even though this connection is actually a fresh instance created outside Spring's transactional context and remains separate from the actual Spring-managed transactional connection.
version: 2.0.7
The text was updated successfully, but these errors were encountered:
cpcnjoker
changed the title
SpringManagedTransaction.openConnection() log. Does it allow for equivocation?
SpringManagedTransaction.openConnection() log. Could this be misunderstood?
Mar 20, 2025
In the SpringManagedTransaction.openConnection() method, if line 80 creates a new database connection, the conditional check at line 81 will always evaluate to true. This occurs because the newly created connection is already stored in threadlocal storage during the preceding steps. As a result, line 82 will log that the connection is "managed by Spring transactions", even though this connection is actually a fresh instance created outside Spring's transactional context and remains separate from the actual Spring-managed transactional connection.
version: 2.0.7
The text was updated successfully, but these errors were encountered: