Preserve entity unlocks on late completion failures for .NET parity
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 43/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
Start with client/grpc_worker_processor.go and trace processOrchestration through failOversizedOrchestratorResponse; then read task/orchestrator.go for entity unlock generation and internal/largepayload/codec.go for permanent payload errors. Run the existing TestFailOversizedOrchestratorResponse... coverage and add the regression cases described in the issue. Done means late terminal failures preserve and generate required unlocks, permanent size errors complete safely, and transient failures retain retry behavior.
索引モデルが issue の本文から書いたものです。
説明
Please preserve and finalize entity unlocks when a late worker failure makes an orchestration terminal, and handle permanent payload externalization failures without an endless abandon/redelivery loop. This is a parity follow-up to durabletask-dotnet PR 816, based on source inspection of current main (c713409eb9a4295884169c144df9221f9a42aef6).
Findings
The completion-size fallback drops entity releases.
- The normal task runtime releases critical sections in
setCompleteInternal/releaseCriticalSectionbefore producing its terminal completion action. - The worker subsequently calls
failOversizedOrchestratorResponse. When the response exceeds the completion bound, this function replaces the entire action list with one non-retriable Failed action. ExistingSendEntityMessage.EntityUnlockSentactions are discarded. - If a still-pending response is made terminal by this late fallback, releases for locks acquired in earlier history also need to be generated. The runtime's normal terminal cleanup has already been bypassed in that case.
Permanent payload errors are abandoned rather than completed safely.
processOrchestrationabandons the work item on everyTransformOrchestratorResponseerror, before reaching the completion-size fallback.Externalizecan return the deterministicapi.ErrLargePayloadTooLargewhen the configured maximum is exceeded. Replaying the same response against the same cap repeats the abandonment and does not send its entity releases.
These are distinct paths: an externalization error currently abandons and does not send a Failed completion; an oversized aggregate response after externalization succeeds can send Failed while dropping unlocks. Both need to preserve the entity-cleanup invariant.
Regression recipes
- Extend the existing
TestFailOversizedOrchestratorResponse...coverage with a response containing two valid unlock actions and an oversized result or action batch. The current helper returns only Failed; it should retain the two unlocks before one Failed completion while discarding unrelated unpersistable work. - Replay a native orchestration that acquired two locks and then produced an oversized pending entity call or fan-out. When late worker handling makes it terminal, releases must be generated even if none were in the original response.
- Use a fake large-payload store and input exceeding
MaxPayloadBytes, and record completion/abandon calls. The permanent cap failure should produce a safe non-retriable completion with the releases instead of repeating abandonment indefinitely. Keep transient storage failures on the retry/abandon path.
The source paths establish the behavior above; these recipes are requested automated regression coverage, not claimed live DTS test runs.
Acceptance Criteria
- Late terminal response rewriting preserves already-emitted entity unlock actions and their owner, critical-section ID and destination.
- Any remaining acquired-lock obligations are finalized after the terminal decision and before transport submission, including when the original response was pending.
- Deterministic permanent payload errors such as
ErrLargePayloadTooLargeproduce a small non-retriable failure with safe entity cleanup rather than a permanent abandon/redelivery loop. - Transient storage failures and cancellation retain retry/abandon semantics, and completion retries do not duplicate unlock actions.
- Regressions cover zero/partial/all pre-existing releases and demonstrate a second caller progressing after cleanup.
- Existing native-token and wrapped-reference idempotency remains intact.
Related
- .NET parity reference: PR 816, currently proposed rather than a released fix.
- Go already recognizes native tokens and wrapped references before raw-payload size checks in
Externalize, and completion transport retries run after transformation. This report does not claim Go has the .NET token-reupload bug.
- 主要言語
- Go
- スター
- 312
- フォーク
- 68
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 7
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/durabletask-go のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
microsoft/durabletask-go#170 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/durabletask-go#156 · リアクション 1 件 ·
microsoft/durabletask-go の issue をすべて見る
似ている issue
-
bug from-studio
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
esengine/DeepSeek-Reasonix#14868 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
project-zot/zot#4636 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
keyxmakerx/Chronicle#1911 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eugenioenko/ttt#1293 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs/area needs/kind needs/priority
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信