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
We ran into an issue with the 2.4.0 release because it replaced DataSourceTransactionManager with JdbcTransactionManager. The latter does exception translation:
This led to a DuplicateKeyException exception being thrown rather than a TransactionSystemException. We didn't expect this because we had explicitly disabled exception translation:
spring.dao.exceptiontranslation.enabled=false
Perhaps DataSourceTransactionManager should continue to be used if this property is set to false?
The text was updated successfully, but these errors were encountered:
Thanks for the report @Gama11. I overlooked that property when I did that change.
philwebb
changed the title
2.4.0 translates exceptions during transactions even with exception translation disabled
Exceptions are still translated by JdbcTransactionManager when spring.dao.exceptiontranslation.enabled is false
Jan 11, 2021
We ran into an issue with the 2.4.0 release because it replaced
DataSourceTransactionManager
withJdbcTransactionManager
. The latter does exception translation:This led to a
DuplicateKeyException
exception being thrown rather than aTransactionSystemException
. We didn't expect this because we had explicitly disabled exception translation:spring.dao.exceptiontranslation.enabled=false
Perhaps
DataSourceTransactionManager
should continue to be used if this property is set to false?The text was updated successfully, but these errors were encountered: