fix: stop the access log watcher when Charon shuts down
メンテナーはふだん 1 日以内に返信
@Wikid82 がすでに取り組んでいます。
2026年12月3日 から。
評価
調査の方向性
Read backend/internal/services/log_watcher.go and the watcher setup in backend/internal/api/routes/routes.go; compare how the stats ingester and hub receive the application context. Start by tracing LogWatcher.Start(ctx) and its tail loop. Add a test that cancellation stops the loop, then verify the watcher shuts down with server.Run(ctx) and releases its resources.
索引モデルが issue の本文から書いたものです。
説明
What
The access log watcher keeps running until the process exits instead of stopping with the application context.
backend/internal/api/routes/routes.go(log watcher block,logWatcher.Start(context.Background())) starts it with a background context, and nothing callsLogWatcher.Stop()at shutdown.LogWatcher.Start(ctx)(backend/internal/services/log_watcher.go:45) ignores itsctxargument; the tail loop watches the watcher's own context created inNewLogWatcher(:34-42).
CLAUDE.md asks long-running work to respect server.Run(ctx).
Severity
Low. The process exits at shutdown anyway; the gap is an unclean stop (open file handle, subscriber channels left open) and a pattern that differs from the stats ingester and hub, which take ctx.
Suggested approach
Have Start derive the tail loop's context from its ctx argument (or call Stop from context.AfterFunc(ctx, ...)), pass the application context from RegisterWithDeps, and add a test that the tail loop ends when the context is cancelled.
Found while planning #2132.
- 主要言語
- Go
- スター
- 17
- フォーク
- 2
- 平均マージ
- 1時間 42分
- マージ済み PR(30日)
- 173
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Wikid82/Charon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Docs promise signed SLSA provenance that the image build does not produce対応中かも @Wikid82 が今日担当しました。 オープンarchitecture documentation security ui
Wikid82/Charon#2152 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Orthrus agent images are not signed or SBOM-attested対応中かも @Wikid82 が今日担当しました。 オープンsecurity ssl testing
Wikid82/Charon#2151 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 days対応中かも @Wikid82 が今日担当しました。 オープンcritical testing
Wikid82/Charon#2150 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Minor follow-ups from the country-allow-list local-network review対応中かも @Wikid82 が今日担当しました。 オープンarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
agent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
turbot/flowpipe#1162 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costs対応中かも @weirong-ui が今日担当しました。 オープンkind/bug needs-priority needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kubernetes-sigs/karpenter#3728 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
compaction: redundant exclusion checks after inRange対応中かも @moodbased が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/mcp-registry#8199 ·
メンテナーはふだん 2 日以内に返信