Every synced entity type builds its cluster envelopes in one place, for live sync and for backfill #331
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
#59 Epic: A node that joins a cluster receives every synced setting and entity at once
lantea-one/ninlil
Reference
lantea-one/ninlil#331
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 backfill must send exactly what live sync sends, secrets included, and must apply the same filters (local-list entries only, global rewrites only).
What changes
New
IClusterConfigSyncSourcein Server.Core, one source per entity type plus tombstones inNinlil.Dns.Server.ClusterSync, and the live subscribers refactored to use the same builder. See the work package detail below (59-2.Acceptance
src/dotnet/tests/Ninlil.Dns.Server.ClusterSync.Tests.BuildEnvelope_ForEachEntityType_MatchesTheLiveSubscribersEnvelopeproves the wire is unchanged.dotnet test Ninlil.slnx -p:NinlilSkipAngularBuild=truepasses.Source
ClusterConfigSyncSubscriberBase.cs:74-143,UserClusterSyncEventSubscriber.cs:77-191,RewriteClusterSyncEventSubscriber.cs:57-68,FilterListEntryClusterConfigSyncApplier.cs:11-16,b14-design.md§2.10.Work package detail
Ninlil.Dns.Server.Core/ClusterSync/IClusterConfigSyncSource.cs):Ninlil.Dns.Server.ClusterSync):Shared/ClusterConfigSyncSourceBase<TEntity>: id snapshot throughListIdsAsync(predicate), thenGetByIdAsyncper id, andBuildEnvelope(entity, ownNodeId)using the stamping rule atClusterConfigSyncSubscriberBase.cs:121-130.Filtering/,AccessControl/,Rewrites/,Forwarding/andIdentity/:Source == Local, a snapshot per local list.ClientId == null && ClientGroupId == null.Shared/TombstoneClusterConfigSyncSource.cs: one deletion envelope per tombstone whoseEntityTypeis a registered applier's type, stamped with the tombstone's time and origin.ClusterConfigSyncSubscriberBaseand the user and role subscribers so they build through the source's builder.ServiceCollectionClusterSyncExtension.src/dotnet/tests/Ninlil.Dns.Server.ClusterSync.Tests):ReadBackfillAsync_ForFilterLists_YieldsOneEnvelopePerListReadBackfillAsync_ForFilterListEntries_YieldsOnlyEntriesOfLocalListsReadBackfillAsync_ForRewrites_SkipsClientAndGroupScopedRewritesReadBackfillAsync_ForUsers_SendsDecryptedSecretsAndNoCiphertextReadBackfillAsync_ForAUserWhoseSecretCannotBeDecrypted_SkipsThatUserAndContinuesReadBackfillAsync_ForARowWithoutAnOriginatingNode_StampsThisNodesIdReadBackfillAsync_ForARowDeletedAfterTheSnapshot_SkipsItReadBackfillAsync_ForTombstones_YieldsADeletionEnvelopeWithTheTombstonesTimestampBuildEnvelope_ForEachEntityType_MatchesTheLiveSubscribersEnvelopedotnet test src/dotnet/tests/Ninlil.Dns.Server.ClusterSync.Testsdotnet test src/dotnet/tests/Ninlil.Web.Testsdotnet test Ninlil.slnx -p:NinlilSkipAngularBuild=true.Ghost referenced this issue2026-11-05 20:48:52 -05:00
Ghost referenced this issue2026-11-05 20:49:02 -05:00
Done on
feature/59-cluster-join-backfill(d446fb9c,d1103ba4); verified (whole solution green with Docker; live wire output pinned and unchanged). Closes when the epic merges into develop.Ghost referenced this issue2026-11-06 01:41:02 -05:00