DatabaseQueue subscribe/unsubscribe can take the stop signal and hang shutdown
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in pkg/rsqueue/impls/database/queue.go, reading SubscribeOne, Unsubscribe, broadcast(), and the WithDbTx queue-copy path alongside the stop-signal fix in #313. Ensure shutdown cannot lose its signal while an operation is in flight, and that queue copies share the loop's completion signal; verify the stop call completes during concurrent subscribe or unsubscribe.
索引モデルが issue の本文から書いたものです。
説明
DatabaseQueue in pkg/rsqueue/impls/database/queue.go has the same stop-signal race fixed for the broadcaster in #313. SubscribeOne and Unsubscribe select on stopChan, and so does the queue's own broadcast() loop. The stopper sends one value on that channel, so a subscribe or unsubscribe in flight during shutdown can take it. The loop then never exits and the stop call hangs.
The #313 fix (an internal done channel closed by the loop) doesn't copy over directly, because WithDbTx makes queue copies without stopChan. Those copies need to share the same done channel.
Found while reviewing rstudio/package-manager#21068.
- 主要言語
- Go
- スター
- 12
- フォーク
- 0
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstudio/platform-lib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rstudio/platform-lib#331 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
rstudio/platform-lib#309 ·
メンテナーはふだん 2 日以内に返信
-
Remove use of `fmt.Sprintf` of with `slog`再び着手できるかも @IrvingMg が 344 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンgood first issue tech debt
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
rstudio/platform-lib#245 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Enable Go StaticCheck linter for platform-lib再び着手できるかも @CDRayn が 401 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtech debt
rstudio/platform-lib#234 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
rstudio/platform-lib#207 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
rstudio/platform-lib の issue をすべて見る
似ている issue
-
難易度 2/5 半日 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
keyxmakerx/Chronicle#2616 ·
メンテナーはふだん 1 日以内に返信
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
prometheus/common#1051 ·
メンテナーはふだん 2 日以内に返信
-
internal/mcp: an exported-but-empty env var is reported as configured but never injected対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgo good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信