perf(acl,grpc-data): #1053 alloc-free warm UNS ACL decisions; unresolvable configured refs back off; restart keeps the comms latch (decided)

U-8: a warm cached decision on a UNS node allocated 416-680 B/call ahead of the cache (live id-chain list, identifier
split, LINQ, segment array, string.Join key, DataCallerIdentity). Now 0 B: the live chain is cached per folder instance
(re-verified against the live ancestry every call), the generation hands out one segment array per path, the authorizer
keys its resolved cache keys on that array, reference variables key on their own identifier (scope = its split), and
the caller identity is built once per session identity.

R-25: ConfiguredProjectedInterestOwner re-ran discovery for an unresolvable configured reference every 1 s sweep forever;
a failed resolve now backs off 1 s doubling to 30 s (60 s unreachable: 61 discoveries -> 6). Publishing into the source hub
only for sources with interest is DECLINED: that cache answers a new subscription's first snapshot and projected Reads.

Restart comms latch (decided: keep): the nodes stay Bad across an operator Restart and the respawned incarnation must
re-publish them; the stopped child's PostStop announcement already re-latches and cancels the old audit. Pinned by test.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-12-03 15:30:07 -05:00
parent a24071405a
commit 6ea0f09614
11 changed files with 586 additions and 37 deletions
+9
View File
@@ -262,6 +262,15 @@ items or an origin is busy.
per-parent child count). Removing a projected anchor, or swapping it for a root leaf, now also tombstones the anchor's
own monitored node. Removing an imported condition purges only its own cached verdicts.
- **An unresolvable configured reference backs off (#1053, R-25).** `ConfiguredProjectedInterestOwner`'s shared 1 s sweep
used to re-run discovery for every desired reference with no lease, every second, for as long as the interest lasted.
A failed resolve now waits 1 s, doubling to a 30 s ceiling, before the sweep tries it again (an explicit interest change
still re-queues at once; a held lease is still re-checked every sweep). 60 s of an unreachable origin: 61 discoveries ⇒ 6.
- **Not changed, by decision (#1053, R-25):** the driver callback still publishes every value into the source hub whether
or not a gRPC consumer is subscribed. That cache is what a new subscription's first snapshot and a projected Read are
answered from (a gRPC-demanded source switches to acknowledged acquisition instead), so publishing "only with interest"
would leave a slow-changing tag with no first value. The R-3 trigger it fed is closed by the #994 re-queue above.
Perf harness: `GrpcDataWave3PerfTests` (`Category=Perf`, opt-in `OTOPCUA_GRPCDATA_PERF=1`).
### Mixed versions (X0 rollout)