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 cluster discovery process. #261

Merged

Conversation

YoEight
Copy link
Member

@YoEight YoEight commented Jan 25, 2024

Fixed: Fix cluster discovery process.

This patch addresses two issues:

The client wrongfully assumed that a connection string like esdb+discover://{ip}:{port} was a single node connection. While wrong it doesn't really matter if the selected node was the leader. If it had another state, a node leader exception would have been raised and the client should reconnect to the leader of the cluster anyway.

The other issue is far more annoying because it lead the client to rule out the leader node from the gossip seed because the client code wrongly assumed that node was from a previous connection attempt that failed.

Copy link

linear bot commented Jan 25, 2024

@YoEight YoEight force-pushed the yoeight/db-622-fix-cluster-discovery-process-in-the-java-client branch 2 times, most recently from f219de8 to dbde67c Compare January 26, 2024 18:31
@YoEight YoEight force-pushed the yoeight/db-622-fix-cluster-discovery-process-in-the-java-client branch from dbde67c to cdb7ac9 Compare January 29, 2024 17:32
@YoEight YoEight merged commit daafa3b into trunk Jan 30, 2024
31 checks passed
@YoEight YoEight deleted the yoeight/db-622-fix-cluster-discovery-process-in-the-java-client branch January 30, 2024 14:13
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.

3 participants