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 liveness checking for unresponsive connections #1515

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

injectives
Copy link
Contributor

@injectives injectives commented Dec 18, 2023

Cherry-pick: #1514

  • Fix liveness checking for unresponsive connections

The driver performs liveness checking for connections when remove them from the pool.
When this connections are not responsive, the driver hangs waiting for the result of the SUCCESS message get back.

This problem occurs becaue driver are not taking in consideration the connection hint connection.recv_timeout_seconds in the liveness check routinge.

The problem is solved by add the ConnectionReadTimeoutHandler to the pipeline also in case of liveness check ping.

  • Remove unused imports

  • apply code style

  • Update driver/src/main/java/org/neo4j/driver/internal/async/pool/NettyChannelHealthChecker.java


* Fix liveness checking for unresponsive connections

The driver performs liveness checking for connections when remove them
from the pool.
When this connections are not responsive, the driver hangs waiting for
the result of the `SUCCESS` message get back.

This problem occurs becaue driver are not taking in consideration the
connection hint `connection.recv_timeout_seconds` in the liveness check
routinge.

The problem is solved by add the ConnectionReadTimeoutHandler to the
pipeline also in case of liveness check ping.

* Remove unused imports

* apply code style

* Update driver/src/main/java/org/neo4j/driver/internal/async/pool/NettyChannelHealthChecker.java

Co-authored-by: Dmitriy Tverdiakov <11927660+injectives@users.noreply.github.com>

---------

Co-authored-by: Dmitriy Tverdiakov <11927660+injectives@users.noreply.github.com>
@injectives injectives changed the title Fix liveness checking for unresponsive connections (#1514) Fix liveness checking for unresponsive connections Dec 18, 2023
Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟧

@injectives injectives merged commit ff21d99 into neo4j:4.4 Dec 18, 2023
16 of 18 checks passed
@injectives injectives deleted the bugfix branch December 18, 2023 13:51
This pull request was closed.
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