Skip to content

Commit

Permalink
Abort transaction in all cases (#881)
Browse files Browse the repository at this point in the history
See JAVA-4575 for more details.
  • Loading branch information
emasab committed Apr 13, 2022
1 parent a407f87 commit ebada8e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -209,7 +209,7 @@ public <T> T withTransaction(final TransactionBody<T> transactionBody, final Tra
try {
startTransaction(options);
retVal = transactionBody.execute();
} catch (RuntimeException e) {
} catch (Throwable e) {
if (transactionState == TransactionState.IN) {
abortTransaction();
}
Expand Down

0 comments on commit ebada8e

Please sign in to comment.