Skip to content

No exception overwriting when it happens on upgrade transaction commit#454

Merged
alex-kulakov merged 8 commits into7.2from
7.2-no-exception-overwrite-on-commit-upgrade
Mar 2, 2026
Merged

No exception overwriting when it happens on upgrade transaction commit#454
alex-kulakov merged 8 commits into7.2from
7.2-no-exception-overwrite-on-commit-upgrade

Conversation

@alex-kulakov
Copy link
Copy Markdown
Contributor

Sometimes exception happens on attempt to commit changes, for example in case of operation timeout. If so, transaction's rollback leads to different exception and hides the original cause of failure. This PR adds extra check for active transaction before attempt to rollback it in catch part of try-catch

If transaction has become broken during commit its rollback leads to
new exception which will overwrite the original one.
Check for active transaction should work because on exception within
driver.CommitTransaction() active transaction is set to NULL.
@alex-kulakov alex-kulakov merged commit b900eaf into 7.2 Mar 2, 2026
@alex-kulakov alex-kulakov deleted the 7.2-no-exception-overwrite-on-commit-upgrade branch March 2, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant