Skip to content

Improve handling of RESET and ACK_FAILURE errors #504

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

Merged
merged 1 commit into from
May 31, 2018

Conversation

lutovich
Copy link
Contributor

This PR makes driver close the network channel when either RESET or ACK_FAILURE receive an error response. Message RESET is sent before release of the channel back to the channel pool. It might fail if database experiences a fatal error (like OutOfMemoryError) or a network failure occurs. In case of such errors channel will be closed and returned to the pool, which will drop it later. Message ACK_FAILURE is sent to acknowledge a FAILURE response. Failure to do so is unrecoverable and should result in a connection being dropped.

Backport of #501

This commit makes driver close the network channel when either `RESET`
or `ACK_FAILURE` receive an error response. Message `RESET` is sent
before release of the channel back to the channel pool. It might fail
if database experiences a fatal error (like `OutOfMemoryError`) or a
network failure occurs. In case of such errors channel will be closed
and returned to the pool, which will drop it later. Message
`ACK_FAILURE` is sent to acknowledge a `FAILURE` response. Failure
to do so is unrecoverable and should result in a connection
being dropped.
@lutovich lutovich merged commit c5e8da6 into neo4j:1.6 May 31, 2018
@lutovich lutovich deleted the 1.6-failure-on-reset-and-ack-failure branch May 31, 2018 08:50
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