Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close open transaction when session is closed #460

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

lutovich
Copy link
Contributor

Instead of rolling it back. This was the previous behaviour that got unintentionally changed in 1.5.0 version of the driver. It makes more sense to close the transaction (which means commit or rollback based on it's state) than just silently rollback. So driver will adhere to Transaction#success() or Transaction#failure() markers when closing session with an open transaction.

Fixes #458

Instead of rolling it back. This was the previous behaviour that got
unintentionally changed in 1.5.0 version of the driver. It makes more
sense to close the transaction (which means commit or rollback based
on it's state) than just silently rollback. So driver will adhere to
`Transaction#success()` or `Transaction#failure()` markers when
closing session with an open transaction.
@zhenlineo zhenlineo merged commit 5864fb6 into neo4j:1.5 Jan 23, 2018
@lutovich lutovich deleted the 1.5-close-tx-in-session-close branch January 23, 2018 15:55
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.

2 participants