Files
lmxopcua/tests/Server
Joseph Doherty 36380d3c9d test(harness): #1106 wait for the deploy topics to gossip before reporting the cluster formed
The deploy-seal timeouts (#843/#1106) were a lost dispatch, not a slow one. Reproduced 3 times
under CPU stress (load 250-430, 1 in ~3-18 runs) with new diagnostics: node B's DriverHost never
logged "reading artifact", its row stayed Applying, and the deployment was still AwaitingApplyAcks
60 s after the wait gave up. The deploy was published 13 ms after node B came Up - before node A's
DistributedPubSub mediator had received B's registry bucket (exchanged on its own 1 s gossip tick,
independent of cluster membership), so the Publish reached node A's driver host only.

TwoNodeClusterHarness.StartAsync / RestartNodeBAsync now also wait until both nodes' DPS
registries carry both nodes' `deployments` subscriptions and the same non-empty
`deployment-acks` set (read off the mediator by reflection; test-only).

Regression test: with pub-sub gossip-interval = 10s a deploy started right after StartAsync
fails deterministically without the wait (exact #1106 signature) and seals with it.

Diagnostics: the seal-timeout message (now on DeployHappyPathTests too) carries each node's DPS
registry view for the deploy topics, both nodes' recent Akka log events / dead letters, and a
60 s late-seal watch that says "slow, not lost" vs "lost, not slow".

Production note: the same window exists on the DPS transport (fire-and-forget dispatch, no
re-dispatch; the 120 s apply deadline closes it TimedOut). Follow-up to be filed.
2026-12-04 20:44:16 -05:00
..