Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Rotate BReg authority work classes instead of returning after the first submission

オープン
#1,237 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
postgresql, rust
領域
backend, databases

調査の方向性

Start in crates/registry-breg/src/review_store.rs at ReviewWorker::run_one and trace the authority work-class loops and their fixed ordering. Add or update the Postgres test described in the issue, and consider the work done when continuously ready submissions no longer prevent a pending cancellation and due result poll from making progress.

索引モデルが issue の本文から書いたものです。

説明

An automated review of #1189 flagged a fairness gap in the BReg review worker's authority pass. In crates/registry-breg/src/review_store.rs, run_one walks its work classes in a fixed order and returns Ok(true) as soon as one unit of work succeeds: submissions first, then cancellations, then the result feed, then result polls.

Failure scenario: pending submissions stay continuously ready, so every pass ends in the submissions loop and the cancellation and result loops below never run. ReviewWorker already stops application jobs from starving authority work, but sustained submission traffic can still starve accepted or cancelling reviews until their recovery or result-retention windows expire.

Suggested fix:

  • Rotate the authority work classes across passes (round-robin or a per-class cursor) instead of always restarting at submissions.
  • Add a Postgres test with continuously ready submissions that asserts a pending cancellation and a due result poll still make progress.

Filed from the review of #1189; not merge-blocking.

主要言語
Rust
スター
2
フォーク
0
平均マージ
7時間 50分
マージ済み PR(30日)
240

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

registrystack/registry-stack のほかの issue

registrystack/registry-stack の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。