From ba20eabbfa5373a4e899dfeec942f87e6bcceb6b Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 4 Dec 2026 22:34:10 -0500 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20#1107=20review=20=E2=80=94=20cor?= =?UTF-8?q?rect=20the=20rolling-upgrade=20residual:=20a=20pre-#1107=20node?= =?UTF-8?q?=20re-applies=20its=20own=20re-send=20on=20either=20transport?= =?UTF-8?q?=20while=20its=20ack=20is=20held;=20upgrade=20driver=20nodes=20?= =?UTF-8?q?before=20central?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Redundancy.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/Redundancy.md b/docs/Redundancy.md index d68d57d07..08ec70247 100644 --- a/docs/Redundancy.md +++ b/docs/Redundancy.md @@ -837,8 +837,13 @@ dial was dropped — either way the deployment sat until the 120 s deadline and 16 deployments) instead of applying again — so a lost ack is recovered and a duplicate ack is harmless (the coordinator re-persists the same outcome, or discards it as stale). An ORIGINAL dispatch is unchanged: re-dispatching a degraded revision still re-applies. -- **Residuals.** A pre-#1107 node on the **DPS** transport ignores `TargetNodes`, so during a rolling upgrade - it can re-apply on a re-send meant for its peer (gRPC is unaffected — central filters). The node's memory +- **Residuals.** A pre-#1107 node ignores `TargetNodes` and has none of the node-side idempotence, so during a + rolling upgrade with central upgraded first it treats every re-send that reaches it as an original dispatch. On + **DPS** that includes re-sends meant for its peer. On **either** transport it includes the common case of its + OWN re-send while its Applied ack is still held on the address-space outcome (any apply slower than 5 s): the + old node re-applies the same revision (the pre-#1107 `_pendingAcks` revision check forces it) and supersedes + the held ack. The second apply's diff is empty, so this is redundant work rather than an outage, but + **upgrade the driver nodes before central** to avoid it. The node's memory is process-local: a node that restarted after acking treats a re-send as a first dispatch (short-circuit, or a re-apply if its revision is unconfirmed). A node that first receives the dispatch at +35 s still has ~85 s to ack; only a rebuild slower than that, which already acks degraded at 105 s, can miss the deadline.