Skip to content

fix(two-node): a failed capability probe is not an answer - #1704

Draft
mxsrc wants to merge 1 commit into
mainfrom
fix/arbiter-probe-errors
Draft

mxsrc wants to merge 1 commit into
mainfrom
fix/arbiter-probe-errors

Conversation

@mxsrc

@mxsrc mxsrc commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

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 into False, so a node probed while it could not answer was stored as "not capable" and never arbitrated: no jc_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_creation with SPDK starting. The node reported dual_node: false, arbitration: false from then on, while the cluster showed arbitration steady.

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. Any RPCException is 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

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.
@github-actions github-actions Bot added the target/main Targets the development branch label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/main Targets the development branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant