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
{{ message }}
Repository navigation
Include root cause when MySQLMaxValueIncrementer fails to commit #37389
When useNewConnection is true, MySQLMaxValueIncrementer commits the sequence update on a separate connection. If that commit (or the subsequent restoration of auto-commit) fails, a DataAccessResourceFailureException is thrown, but the original SQLException is discarded.
This makes it unnecessarily difficult to diagnose the actual cause of the failure.
We should therefore include the original SQLException as the cause of the DataAccessResourceFailureException.
Activity
Include root cause in MySQLMaxValueIncrementer