gRPC data Subscribe: can a replacement item emit a live value before its snapshot after Modify? #966

Closed
opened 2026-12-01 22:02:46 -05:00 by dohertj2 · 1 comment
Owner

Suspected ordering gap noted during #962 (23b28e001), not observed and not investigated. After a Modify commits a replacement item, a new source sample landing between the commit and the next snapshot pump might be delivered as a live delta for the new item before its SnapshotBegin/Snapshot/End, violating the snapshot-before-delta contract. Check DataSubscriptionSession commit vs snapshot-pump ordering; if real, add a deterministic test with the BeforeDirtyTickForTests hook as #962 did.

Suspected ordering gap noted during #962 (23b28e001), not observed and not investigated. After a Modify commits a replacement item, a new source sample landing between the commit and the next snapshot pump might be delivered as a live delta for the new item before its SnapshotBegin/Snapshot/End, violating the snapshot-before-delta contract. Check DataSubscriptionSession commit vs snapshot-pump ordering; if real, add a deterministic test with the BeforeDirtyTickForTests hook as #962 did.
dohertj2 added the type:followuppriority:p3 labels 2026-12-01 22:02:46 -05:00
Author
Owner

Real defect, fixed in efd749da0 (merged e96d81ba0). A Modify commits on ack delivery; an in-flight tick could mark the source dirty and ConsiderAsync emitted the replacement item's newer value ahead of SnapshotBegin, then the snapshot carried the older value (client went 20 -> 10). ConsiderAsync now skips items whose snapshot hasn't completed; the change is picked up after SnapshotEnd. Deterministic test failed 3/3 before; stress 60/40k -> 0/40k. Ordering guarantee documented in docs/DataConnections.md. GrpcData suite on merged master: 1109/1109.

Real defect, fixed in efd749da0 (merged e96d81ba0). A Modify commits on ack delivery; an in-flight tick could mark the source dirty and ConsiderAsync emitted the replacement item's newer value ahead of SnapshotBegin, then the snapshot carried the older value (client went 20 -> 10). ConsiderAsync now skips items whose snapshot hasn't completed; the change is picked up after SnapshotEnd. Deterministic test failed 3/3 before; stress 60/40k -> 0/40k. Ordering guarantee documented in docs/DataConnections.md. GrpcData suite on merged master: 1109/1109.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#966