Skip to content

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