test(717): deferred-event boundary, ACL-filtered promotion refresh, native-ack refusal, effective-URI XML load; docs + T13 overlay
v2-ci / unit-tests (push) Has been cancelled

- Wire: an event reported while Active but deferred (#838) is delivered after demotion; the promotion refresh
  withholds an ACL-denied condition (positive control alongside); ConditionRefresh2 and model-change events on the
  Standby; a native Acknowledge is refused and never routed; Warm validates and advertises the EFFECTIVE
  ApplicationUri from an ApplicationConfigPath XML load.
- docs/Redundancy.md: Warm section, the Unset/None i=11314 behaviour (orphan readable by NodeId under Unset,
  deleted under None), instruments; OpcUaServer.md, Configuration.md, security.md, cluster-topology rule.
- docker-dev/docker-compose.warm.yml for the T13 gate (central pair, Mode=Warm).
- Plan: implementation status and the test gaps left for T13/follow-up.

Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
This commit is contained in:
Joseph Doherty
2026-11-13 03:39:49 -05:00
parent 7829b937d1
commit f817c77e02
9 changed files with 357 additions and 14 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ paths:
## Redundancy
The server supports non-transparent warm/hot redundancy via the `Redundancy` section in `appsettings.json`. Two instances share the same Galaxy DB and the same mxaccessgw (under distinct `MxAccess.ClientName` values) but have unique `ApplicationUri` values. Each exposes a dynamic `ServiceLevel` based on role and runtime health and publishes self + peer URIs in `Server.ServerArray` (`i=2254`); the primary advertises a higher ServiceLevel than the secondary. ⚠️ It does **not** yet set `ServerRedundancy.RedundancySupport` (`i=3709`, reads the SDK default) or expose `ServerUriArray` (`i=11314`) — #717: feasible on the pinned SDK without an upgrade, but blocked on the owner-selected "Warm with a degraded standby" contract (today's standby serves Good data at 240), so do not "just set it to Warm". See `docs/Redundancy.md` for the full guide.
The server supports non-transparent warm/hot redundancy via the `Redundancy` section in `appsettings.json`. Two instances share the same Galaxy DB and the same mxaccessgw (under distinct `MxAccess.ClientName` values) but have unique `ApplicationUri` values. Each exposes a dynamic `ServiceLevel` based on role and runtime health and publishes self + peer URIs in `Server.ServerArray` (`i=2254`); the primary advertises a higher ServiceLevel than the secondary. **Standard redundancy metadata is opt-in via `OpcUa:Redundancy:Mode` (#717, default `Unset` = today's server exactly).** `Unset` writes nothing (`i=3709` reads the SDK default; the SDK's orphan `i=11314` reads Good `[]` by NodeId but is not browsable); `None` advertises `RedundancySupport=None` and deletes that orphan; `Warm` installs `NonTransparentRedundancyType` + read-only `ServerUriArray [self, peers]` and the degraded-standby contract — Standby ServiceLevel 90/50 (Active 250/200/100, boot 1), ordinary-tag values `BadOutOfService`/null while acquisition continues, new alarm events suppressed (stamped, refreshed on promotion), writes and Part 9 methods refused `BadInvalidState`. Landmines: (1) the Warm verdict is NOT `PrimaryGatePolicy` — it needs a **revisioned** snapshot (`RedundancyStateChanged.Revision`), so a pre-#717 publisher can never make a Warm node Active: upgrade both nodes before flipping either; (2) D4 (no Good first-delivered after demotion) is keyed by `(SubscriptionId, SequenceNumber)` and an `OrdinaryTagMarker` on `MonitoredItemNotification.Message` — never by object, because SDK 2.0.1 clones every delivery and pools payloads; `WarmStandbyUnitTests` pins the SDK field contract, so an SDK bump that breaks it fails there; (3) `Member.UpNumber` is internal in Akka.NET and read by reflection (pinned by a test); (4) no tier sets `Warm` until ScadaBridge#138 (ServiceLevel-aware failover) is deployed. See `docs/Redundancy.md` → "Warm non-transparent redundancy (#717)".
**Two corrections landed 2026-07-21 — both were total-outage or wrong-node defects, and both are worth knowing before touching this area.**