fix(grpc-data): #968 a projected node replaced by a metadata renewal mid-lookup no longer resolves as missing
OtOpcUaNodeManager.TryResolve/TryResolveForRenewal read the committed definition map twice and answered false when a renewal replaced the definition between the reads. Every subscription demand check racing a renewal could then see its live node as gone and tear its physical stream down (freshness check breaking the attempt, 'Source unavailable' on the rebind baseline). Two cadences of one node made it likely: both renew on the same tick and the second, redundant renewal replaces the definition again while the first cadence rebinds - the residual ~1% hang of Two_sdk_cadences_renew_before_expiry (the barrier timeout was a victim). A lookup now re-evaluates a definition replaced mid-check (bounded). Regression: A_definition_replaced_by_a_renewal_never_resolves_as_missing (red: ~19% of lookups racing renewals answered missing), plus a wire test for two cadences committing the same successor.
This commit is contained in:
@@ -150,6 +150,14 @@ under the new stream epoch before it can publish again; old queued or Republish
|
||||
the new proof. Withdrawal or expiry of the original local Subscribe authority stops renewal.
|
||||
Consumers can miss intermediate changes during an interruption.
|
||||
|
||||
A renewal replaces the node's committed definition. Until #968 the lock-free node lookup that every
|
||||
subscription demand check uses answered "no such node" when that replacement landed between its two
|
||||
reads, so a stream racing a renewal could see its live node as gone for an instant and tear its physical
|
||||
stream down (a freshness check breaking the attempt, or `Source unavailable` on the rebind's baseline).
|
||||
Two cadences of the same node made it likely, because both renew on the same tick and the second
|
||||
(redundant) renewal replaces the definition again while the first cadence rebinds. A lookup now
|
||||
re-evaluates a definition replaced mid-check instead of reporting it missing.
|
||||
|
||||
## Rollout and diagnosis
|
||||
|
||||
1. Provision TLS trust and connection-scoped target credentials on each consumer; configure the
|
||||
|
||||
Reference in New Issue
Block a user