Land and landsignal DLQs fail a `landing` batch that Runway goes on to merge
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- go
- Bereich
- distributed-systems
Rechercherichtung
Start with submitqueue/orchestrator/controller/dlq/dlq.go and the interleaving described in the issue; then read spec/submitqueue/landoutcome/LandOutcome.tla and compare the design options. Add tests that interleave a DLQ with a late SUCCEEDED and confirm they fail before the fix. Done means the chosen design updates the model and meets all four acceptance criteria without allowing an incorrect terminal outcome.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
A batch is reported failed, and its requests error, even though Runway merged the change onto the target branch.
Cause
failBatch (submitqueue/orchestrator/controller/dlq/dlq.go) moves any non-terminal batch to failed, landing included. A landing batch has already handed its outcome to Runway, so the reconciler cannot know whether the merge happened. Two DLQs reach failBatch while the batch is landing:
submitqueue-landDLQ. The Runway publish island's last step, so a lost ack, or an ambiguous publish error after the row was written, leaves Runway holding the MergeRequest. If later attempts then fail on a storage error, the message dead-letters.landsignalDLQ.landsignalholds Runway'sSUCCEEDED, but the batch compare-and-swap keeps failing on a storage fault. The DLQ payload contains the verdict, and the reconciler discards it.
When Runway's answer arrives later, landsignal sees a terminal batch, re-fans out, and acks. Nothing corrects the outcome.
Interleaving (TLC's shortest counterexample)
speculate: batch speculating → landing, publish to submitqueue-land
land: publish MergeRequest to runway-merge, then the attempt fails; retries exhaust → land DLQ
runway: merges, publishes SUCCEEDED
land DLQ: failBatch: landing → failed, fan out requests → error
landsignal: batch already terminal → ack, outcome unchanged
Why the obvious fixes are not enough
Found by model checking spec/submitqueue/landoutcome/LandOutcome.tla, which checks 24 design combinations:
- Skip
landingin the DLQ and wait for Runway. This trades the wrong answer for a batch that never finishes, when Runway's answer is itself the message that dead-lettered. - Re-send the MergeRequest from the DLQ. This is unsound against today's Runway, for two reasons:
- A stale
FAILEDcan win. Runway's first attempt dead-letters without pushing, so its DLQ honestly answersFAILED. The re-send then merges on a second attempt, and the earlierFAILEDis applied. - The replay is swallowed. A replayed answer reuses the request ID as its message ID and is deduped by the queue (the #352 class).
- A stale
- The only design that passes every property has four parts: the DLQ re-sends; Runway's DLQ checks the branch; Runway records its verdict per request ID; and answers do not dedup on the request ID alone. That gives Runway state, so cheaper designs are worth modelling first. Two candidates: the
landsignalDLQ applies the verdict it holds, andlandrecords "dispatched" before it publishes.
Acceptance criteria
- A dead letter on
submitqueue-landorlandsignalnever moves alandingbatch tofailedwhile the change can still land or has landed. - Every
landingbatch still reaches a terminal state. - Unit tests that interleave the DLQ with a late
SUCCEEDED, confirmed to fail before the fix. -
LandOutcome.tlaupdated to the chosen design.
Related: #818 (the same symptom through the speculate path).
- Vorherrschende Sprache
- Go
- Sterne
- 247
- Forks
- 16
- Ø Merge
- 2 T. 1 Std.
- Gemergte PRs (30 T.)
- 125
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus uber/submitqueue
-
[Bug] Land returns codes.Unknown instead of InvalidArgument for an unrecognized strategyEvtl. vergeben @DivyanshGarg380 hat das vor 14 Tagen übernommen. Offenbug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 22/100
uber/submitqueue#996 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Batch-scoped DLQ reconciler fails requests that another live batch ownsEvtl. vergeben @burgulvedant hat das vor 14 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
uber/submitqueue#826 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Cancel misses a batch mid-promotion, letting a cancelled request reach speculationEvtl. wieder frei @burgulvedant hat das vor 14 Tagen übernommen, und es ist kein Pull Request offen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
uber/submitqueue#825 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
uber/submitqueue#824 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
uber/submitqueue#820 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in uber/submitqueue
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
kubescape/node-agent#1099 ·
Maintainer antworten meist innerhalb von 1 Tag
-
import-export
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
genealogix/glx#1498 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Docs: 2 broken linksOffenBug pulumi/pulumi-terraform-bridge R2 S2
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
pulumi/pulumi-terraform-bridge#3713 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ossf/pvtr-github-repo-scanner#539 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
goreleaser/goreleaser#7316 ·
Maintainer antworten meist innerhalb von 1 Tag