Release, recovery and deferral of outbox batches still cost a write per row
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- backend, databases, performance
調査の方向性
Start by reading OutboxDrainer.ReleaseAsync and the claim logic it uses for leased rows; then trace how each lane reads PluginState and builds the deferred-id exclusion list. Check the existing outbox tests before changing behavior. Done means each proposal item is fixed or explicitly declined in the PR, with tests covering every fix.
索引モデルが issue の本文から書いたものです。
説明
Problem
These are left over from the review of PR #3404 (outbox lanes per owner). None of them loses an event; they cost writes, time or log noise.
- Release on shutdown, row by row and without a token. A stopping host releases each unclaimed row of a batch with its own conditional
UPDATE(OutboxDrainer.ReleaseAsync), and the update takes no cancellation token. A large batch can therefore hold shutdown forBatchSizewrites. - Recovery after a failed release is row by row. A release that fails leaves the row leased with its claim attempt counted. Once the lease lapses, the row is claimed alone because it still names an owner. A whole failed batch is then recovered one claim per row.
- Deferrals cost a write each while plugin state is down. When
PluginStatecannot be read, every row of a batch is released and deferred with one write each. Each later drain then repeats the read of the plugin state for every lane. - Deferrals are bounded by time only. A deferred row is skipped for
MissingHandlerDelay, and the set of deferred ids is not capped. Their ids also go into every claim as aNOT INparameter list. A long thread-pool starvation can make that list long.
Proposal
- Release the rest of a batch with one
UPDATE ... WHERE id IN (...), bounded by a short timeout. - After a lapsed lease, claim alone only the first row that names a dead owner, not each of them.
- Read plugin state once per lane pass, and on failure release the batch in one write.
- Cap the deferred set, for example at
BatchSize, and leave the oldest out of theNOT INlist.
Acceptance
- Each item fixed or explicitly declined in its PR, with tests for those fixed
- 主要言語
- C#
- スター
- 567
- フォーク
- 107
- 平均マージ
- 1時間 19分
- マージ済み PR(30日)
- 353
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fluentcms/FluentCMS のほかの issue
-
area:localization plugin type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:storage type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
area:testing type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area:api area:publishing type:feature
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
fluentcms/FluentCMS#3473 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:storage plugin type:bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
fluentcms/FluentCMS の issue をすべて見る
似ている issue
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offオープンbug regression threading
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
CryptoHives/Foundation#362 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: 本地歌词翻译显示错误オープンbug need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQ対応中かも @spuddeh が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信