gRPC data: concurrent cadence renewals of the same predecessor run a redundant metadata renewal + definition replace #969

Closed
opened 2026-12-02 14:50:55 -05:00 by dohertj2 · 1 comment
Owner

Follow-up from #968. When two Subscribe cadences hit the renewal window on the same tick, each runs its own metadata renewal of the same predecessor. The second adopts the successor the first already committed, yet still replaces the node's committed definition again. Since #968 this is harmless, because resolve retries across a replacement, but it costs a redundant metadata call and definition swap per node each time. Possible fix: de-duplicate in-flight renewals per predecessor (needs a sink interface change). Low priority, efficiency only.

Follow-up from #968. When two Subscribe cadences hit the renewal window on the same tick, each runs its own metadata renewal of the same predecessor. The second adopts the successor the first already committed, yet still replaces the node's committed definition again. Since #968 this is harmless, because resolve retries across a replacement, but it costs a redundant metadata call and definition swap per node each time. Possible fix: de-duplicate in-flight renewals per predecessor (needs a sink interface change). Low priority, efficiency only.
dohertj2 added the type:followuppriority:p3 labels 2026-12-02 14:50:55 -05:00
Author
Owner

Fixed in a571a0fc9 (merged 59f1eabc8). Cadence renewals are de-duplicated per predecessor in ProjectedDataAccess, with no sink-interface or node-manager change. A concurrent cadence waits for the running renewal and adopts its committed successor, with its own caller re-authorized. If the shared renewal doesn't commit, it renews on its own, so cadences are coupled only by a delay. Test: 2 metadata calls -> 1, and 1 commit. 280 stress runs: #968 hang not reintroduced. DataConnections 1030/1030. Side finding: #970.

Fixed in a571a0fc9 (merged 59f1eabc8). Cadence renewals are de-duplicated per predecessor in ProjectedDataAccess, with no sink-interface or node-manager change. A concurrent cadence waits for the running renewal and adopts its committed successor, with its own caller re-authorized. If the shared renewal doesn't commit, it renews on its own, so cadences are coupled only by a delay. Test: 2 metadata calls -> 1, and 1 commit. 280 stress runs: #968 hang not reintroduced. DataConnections 1030/1030. Side finding: #970.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#969