Files
ziti/tests/testdata
Paul Lorenz 7f2f619e88 Reconcile the raft advertise address with the controller config on startup. Fixes #3588
- adds a startup reconcile that asks the leader to move this node's stored raft address to its configured advertise address, retrying with jittered backoff until the change is visible locally
- wakes the running reconcile on leader events instead of starting a second one, and jitters the first attempt and each wake so controllers reconciling after the same event spread their requests
- keeps checking a node whose copy of the configuration doesn't list it yet, as after a restart before any of the log reached it, instead of treating it as reconciled
- adds an UpdatePeerAddressRequest peer message carrying the member id, the address the node believes is stored and the new address; the leader accepts it only from the node it names and does not forward it
- adds updateMemberAddressAsLeader, which changes a member's address in place, keeping its suffrage, after refusing non-members, addresses held by another member and stale from addresses
- probes the new address as a sanity check, refusing the change if a different controller answers and making it with a warning if the address can't be reached, since some controllers only dial out
- conditions the update on a configuration index read from the raft log and snapshot stores, since GetConfiguration().Index() is always zero in the pinned raft version
- routes AddPeer requests that find an existing member at a new address to the in-place update instead of remove and re-add, identifying the member through GetPeerInfo rather than the request id
- falls back to the member id when the raft transport dials a stored address with no peer connected at it
- adds a probe hello header so probe connections are closed without registering a peer
- excludes self by server id in GetPeerAddresses
- corrects the inverted voter flag in the peer AddPeer log and removes the unused ctrlAddress field
- tests single-node, follower, non-voter and leader address changes, refused and unverified addresses, requests from the wrong sender, membership changes made while a member is offline or during the probe, and configuration lookup across snapshots and log gaps
- tests the reconcile starting on an empty log and waiting until the configuration lists the node
- waits in the HA test harness for a restarted peer's own configuration to list it before restarting it
- adds a changelog entry describing the address update and the leader version requirement
2026-10-28 20:54:56 -04:00
..
2021-12-01 16:12:29 -05:00
2021-12-01 16:12:29 -05:00