Skip to content

Conversation

@redknightlois
Copy link
Member

Handles network errors during connection failover more reliably by catching both requests-level and OS-level socket exceptions. This mirrors the behavior of the C# client and prevents connection failures due to DNS resolution issues or server unavailability.

Also, refactors the failover logic to improve retry behavior on failed requests, ensuring that the next preferred node is chosen and retried, while avoiding infinite loops by checking for already failed nodes. Notifies listeners about failed requests with full details, and broadcasts commands where applicable to improve efficiency. Finally, ensures that only member nodes without failures are chosen first.

Adds tests to verify failover scenarios with invalid DNS configurations and unreachable endpoints.

@redknightlois redknightlois force-pushed the RDBC-948 branch 3 times, most recently from 011146b to a11eb79 Compare September 19, 2025 17:00
Handles network errors during connection failover more reliably by catching both requests-level and OS-level socket exceptions. This mirrors the behavior of the C# client and prevents connection failures due to DNS resolution issues or server unavailability.

Also, refactors the failover logic to improve retry behavior on failed requests, ensuring that the next preferred node is chosen and retried, while avoiding infinite loops by checking for already failed nodes. Notifies listeners about failed requests with full details, and broadcasts commands where applicable to improve efficiency. Finally, ensures that only member nodes without failures are chosen first.

Adds tests to verify failover scenarios with invalid DNS configurations and unreachable endpoints.
@poissoncorp poissoncorp merged commit 9eb4049 into ravendb:v7.1 Sep 23, 2025
4 checks passed
@poissoncorp
Copy link
Contributor

Thank you @redknightlois!

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