A permanent database error while recording data-cube appends stalls all dispatching

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

Start with services/pipeline/src/pipeline/dispatcher/loop.py, especially the record_appends call after the catalog-change loop, and trace how the batch is marked done or released for retry. Check the existing dispatcher fakes and tests for how to simulate a permanent database permission error. Done means append-recording failure is logged and counted, the rest of the batch is marked done or released, and a test covers that behavior.

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

説明

ready

Found by independent review of #253; the code is the same on main, so it predates that PR.

After the dispatcher has worked through a batch of catalog changes it records the data-cube appends in one step (services/pipeline/src/pipeline/dispatcher/loop.py, the record_appends call after the loop). If that step fails with a permanent database error (for example a missing table or missing permission), the error escapes: the batch is neither marked done nor released for retry. The batch is picked up again after 10 minutes and fails the same way, indefinitely. Deliveries and process runs for every collection in that batch never go out, and the retry cap never applies because the attempt count never increases.

Reproduced with the repo's own fakes: with the append-recording step raising a permission error, one event from a cube source and one from another collection gave no deliveries, nothing marked processed, nothing released.

Likelihood in supported deployments is low (the two cube tables are created together and the pipeline connects as the owner), but it is the one path where "a data-cube problem must not hold up deliveries" is false.

Done when: a failure recording cube appends cannot prevent the rest of the batch from being marked done or released, the failure is logged and counted, and a test covers it.

🤖 Generated with Claude Code

主要言語
Python
スター
0
フォーク
2
平均マージ
8時間 26分
マージ済み PR(30日)
47

環境構築

はじめの一歩

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

TechTraverse/stac-higher のほかの issue

TechTraverse/stac-higher の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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