Files
lmxopcua/src/Server
Joseph Doherty b8b7b68d34 fix(controlplane): #996 review — a superseded deployment's in-flight ack write no longer drops the successor's ack
In-flight ack writes were tracked by node only and ResetForNext (supersede + every terminal path) cleared the
parked-behind acks but not the in-flight set. With deployment A's ack write for node N still running, B
superseding A (or A closing at the deadline-deferral cap) and N acking B parked B's ack behind A's write; A's
stale completion then deleted it and B timed out naming N, though N applied it.

- In-flight writes are per deployment: ResetForNext clears _persisting; an ack parks only behind a write of the
  SAME deployment; a completion removes only its own entry (reference match).
- The stale-completion branch starts a parked ack of the current deployment instead of dropping it.
- The deferral cap counts only current-deployment in-flight (and parked, newest-wins) acks; the deadline deferral
  and its early re-fire, and the retry-tick guard, consider only the current deployment's writes.

Tests: ConfigPublishCoordinatorSupersededAckWriteTests — supersede and deferral-cap variants (both failed before
the fix) plus a positive control.
2026-12-03 11:46:08 -05:00
..