gRPC data Subscribe: can a replacement item emit a live value before its snapshot after Modify? #966
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Real defect, fixed in
efd749da0(mergede96d81ba0). 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.