Repository navigation
Conversation
supports_two_node_arbitration() turned every error into False, and the arbiter stored that result for the life of its process. A node probed while its SPDK was still starting was therefore never arbitrated: no jc_set_dual_node, no lease, until the arbiter restarted. Seen on a fresh two-node cluster, where the arbiter probed the second node the moment its record appeared, still in_creation. supports_two_node_arbitration() now only checks the method list and lets every error propagate. probe() stores only the node's answer and treats any RPC error as intermittent: the node stays undecided and is probed again on the next renewal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The arbiter probes each node once for the two-node arbitration RPCs and keeps the result for the life of its process.
supports_two_node_arbitration()turned every error intoFalse, so a node probed while it could not answer was stored as "not capable" and never arbitrated: nojc_set_dual_node, no lease, until the arbiter restarted.Seen on a fresh two-node cluster: the arbiter probed the second node the moment its record appeared, still
in_creationwith SPDK starting. The node reporteddual_node: false, arbitration: falsefrom then on, while the cluster showed arbitrationsteady.Change
RPCClient.supports_two_node_arbitration()only checks the method list (TWO_NODE_ARBITRATION_RPCS <= rpc_get_methods()) and lets every error propagate.Arbiter.probe()stores only the node's answer. AnyRPCExceptionis intermittent: the node stays undecided and is probed again on the next renewal.Not in this PR
A node that is undecided or not capable is still one of the two nodes every verdict is computed over. It is never leased and defaults to reachable, so its loss can never produce a verdict, and the survivor fences itself at its hold deadline. Gating arbitration on both nodes being capable, configured and contacted is a separate change.
Tests
tests/unit/rpc/test_client.py: all RPCs present, one missing, error propagates (fails on the old code).tests/unit/test_two_node_arbiter.py: a failed probe leaves the node undecided until it answers, then it is leased and configured. A "not capable" answer is kept and not probed again.🤖 Generated with Claude Code