A cluster peer that missed a change catches up at its next successful heartbeat #334
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
lantea-one/ninlil#334
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of epic #59.
Why
A failed live delivery, or one skipped for an unreachable peer, is only logged today. The README tells operators to save every page again by hand.
What changes
The broadcaster records a backfill request for each
Unreachablepeer it skips and each peer whose delivery fails, never for aJoiningpeer. See the work package detail below (59-5.Acceptance
BroadcastAsync_*tests pass insrc/dotnet/tests/Ninlil.Dns.Server.Cluster.Tests, andBackfill_AfterAPeerMissedAChange_DeliversItAtTheNextSuccessfulProbepasses insrc/dotnet/tests/Ninlil.Web.Tests.Source
ClusterConfigSyncBroadcaster.cs:21-27,69-140, README:4190-4194.Work package detail
Goal (OD-3 = c): a peer that missed a live change catches up at its next successful probe.
Files:
ClusterConfigSyncBroadcaster.BroadcastAsync: for eachUnreachablepeer it skips, and each peer whose delivery fails, upsert a backfill request (setRequestedAtUtc = nowwhen the row exists).Joiningpeers get none, with a comment saying why (the joiner's view of its inviter before the first heartbeat; avoids pushing the joiner's own accounts, OD-1).Backfill/ClusterConfigBackfillRequests.RequestAsync(repository, unitOfWork, clusterNodeId, now).:21-27.Acceptance (
src/dotnet/tests/Ninlil.Dns.Server.Cluster.Tests):BroadcastAsync_ForAnUnreachablePeer_RecordsABackfillRequestBroadcastAsync_WhenADeliveryFails_RecordsABackfillRequestForThatPeerBroadcastAsync_ForAJoiningPeer_RecordsNoRequestBroadcastAsync_WhenEveryDeliverySucceeds_RecordsNoRequestIn
src/dotnet/tests/Ninlil.Web.Tests:Backfill_AfterAPeerMissedAChange_DeliversItAtTheNextSuccessfulProbe.Gate:
dotnet test src/dotnet/tests/Ninlil.Dns.Server.Cluster.Testsdotnet test src/dotnet/tests/Ninlil.Web.TestsGhost referenced this issue2026-11-05 20:49:02 -05:00
Done on
feature/59-cluster-join-backfill(48dd773f); final verification runs over the whole epic before the PR. Closes when the epic merges into develop.Ghost referenced this issue2026-11-06 01:41:02 -05:00