A database outage stops the app or the scheduler
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in src/TickerNet/Src/BackgroundServices/TickerNetSchedulerBackgroundService.cs, reading ExecuteAsync around lines 60-95 and noting every path that calls ReleaseAllResourcesAsync or ReleaseAcquiredResources. Then find the persistence-provider abstraction those calls go through and the test project where a fake provider can be made to throw, so the test fails before the change. Done means a database failure is caught and logged, the loop backs off with a capped delay and keeps running, and that test passes.
索引モデルが issue の本文から書いたものです。
説明
What happens
When the scheduler loop in src/TickerNet/Src/BackgroundServices/TickerNetSchedulerBackgroundService.cs (ExecuteAsync, around lines 60-95) catches an exception, for example because the database is unreachable, its catch calls ReleaseAllResourcesAsync, which writes to the same database. The restart and shutdown paths call ReleaseAcquiredResources the same way. If that call throws too, the exception leaves ExecuteAsync.
With the default BackgroundServiceExceptionBehavior.StopHost, the whole app stops. With Ignore, the scheduler stays stopped until the app restarts.
Impact
A short database outage takes down the app, or silently stops all scheduling. High.
Fix idea
Wrap the release calls in try/catch, log the failure, back off (growing delay with a cap) and keep looping. ExecuteAsync should only end on shutdown. Test with a persistence provider that throws.
Found while checking which problems that TickerQ fixed after the fork still exist in TickerNet. Fix it from this description and TickerNet's own code only: never read or copy code from TickerQ 10.5.0 or later (see CONTRIBUTING.md). Please add a test that fails before the fix.
- 主要言語
- C#
- スター
- 0
- フォーク
- 2
- 平均マージ
- 1時間 8分
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TickerNet/TickerNet のほかの issue
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
.NET enhancement good first issue roadmap
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Document PathBase inside the dashboard branch and WebDAV on IIS対応中かも @harryhawwy69 が今日担当しました。 オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 40/100
メンテナーはふだん 1 日以内に返信
-
TickerFunctionProvider's registry is publicly writable対応中かも @harryhawwy69 が今日担当しました。 オープン.NET bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
Cron editor accepts 7 for Sunday, then saving fails with a generic error対応中かも @harryhawwy69 が今日担当しました。 オープンbug good first issue javascript
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
TickerNet/TickerNet の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet-outdated/dotnet-outdated#871 ·
メンテナーはふだん 1 日以内に返信
-
triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26676 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jhaizhou-ops/S2Arm#2177 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
S: Untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信