Land and landsignal DLQs fail a `landing` batch that Runway goes on to merge
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Go
- スター
- 247
- フォーク
- 16
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 125
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uber/submitqueue のほかの issue
-
[Bug] Land returns codes.Unknown instead of InvalidArgument for an unrecognized strategy対応中かも @DivyanshGarg380 が 14 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 22/100
uber/submitqueue#996 ·
メンテナーはふだん 2 日以内に返信
-
Batch-scoped DLQ reconciler fails requests that another live batch owns対応中かも @burgulvedant が 14 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
uber/submitqueue#826 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Cancel misses a batch mid-promotion, letting a cancelled request reach speculation再び着手できるかも @burgulvedant が 14 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
uber/submitqueue#825 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
uber/submitqueue#824 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
uber/submitqueue#820 ·
メンテナーはふだん 2 日以内に返信
uber/submitqueue の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
kubescape/node-agent#1099 ·
メンテナーはふだん 1 日以内に返信
-
import-export
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
genealogix/glx#1498 ·
メンテナーはふだん 2 日以内に返信
-
Docs: 2 broken linksオープンBug pulumi/pulumi-terraform-bridge R2 S2
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
pulumi/pulumi-terraform-bridge#3713 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ossf/pvtr-github-repo-scanner#539 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
goreleaser/goreleaser#7316 ·
メンテナーはふだん 1 日以内に返信