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

Fix reset of transaction functions #340

Merged
merged 1 commit into from
Mar 23, 2017
Merged

Conversation

lutovich
Copy link
Contributor

Transaction functions (Session#readTransaction() and Session#writeTransaction()) should respect Session#reset() call the same way other statement running operations do. They shouldn't continue retrying after #reset().

This PR makes transaction functions responsive to reset by removing excessive synchronization and adding status code checks so retries do not happen when transaction is explicitly terminated.

Transaction functions (`Session#readTransaction()` and
`Session#writeTransaction()`) should respect `Session#reset()` call the
same way other statement running operations do. They shouldn't continue
retrying after `#reset()`.

This commit makes transaction functions responsive to reset by removing
excessive synchronization and adding status code checks so retries do not
happen when transaction is explicitly terminated.
@zhenlineo zhenlineo merged commit 6a9cab3 into neo4j:1.2 Mar 23, 2017
@lutovich lutovich deleted the 1.2-reset-tx-func branch March 23, 2017 09:36
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.

None yet

2 participants