-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-562 Any caught exception from inner transaction triggers…
… full rollback (#2251) * fix: Any exception thrown by inner transaction triggers full rollback A fix was included in the last release to ensure that failed operations in inner transactions did not lead to saved commits (when useNestedTransactions = false) if the exception was swallowed by some try-catch handler block. The fix made it so that any exception triggers a rollback, which is problematic for exceptions that are thrown by application/server/client Kotlin code. These do not necessarily warrant a full database rollback. The implemented fix has been loosened to only apply to database SQLExceptions. Breaking changes doc has also been amended to reflect the change more clearly. * fix: EXPOSED-562 Any exception thrown by inner transaction triggers full rollback - Add extra retroactive details to breaking changes doc - Add unit tests for thrown exceptions with nested transactions, to ensure no regression there - Refactor transaction exception catch blocks
- Loading branch information
Showing
5 changed files
with
160 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters