mmodzelewski opened a new pull request, #3745: URL: https://github.com/apache/iggy/pull/3745
Java clients connected to a VSR follower had no way to discover the cluster leader, so operations against a multi-node cluster failed until the user manually pointed the client at the right node. Add the GET_CLUSTER_METADATA command with cluster roster models and a binary deserializer. After login the async TCP client fetches the roster and, when a healthy leader with an enabled TCP endpoint lives elsewhere, reconnects to it and replays the login. Redirections are capped at 3 consecutive hops so two nodes both claiming leadership cannot ping-pong a client, and every failure on the redirect path is non-fatal: the client stays on the current node. Mirrors the Rust and Go SDKs. Covered by a leader_redirection BDD scenario wired into the cluster docker-compose setup. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
