A permanent database error while recording data-cube appends stalls all dispatching
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 47
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TechTraverse/stac-higher
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 85/100
TechTraverse/stac-higher#261 ·
Maintainers usually reply within 1 day
-
ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TechTraverse/stac-higher#258 ·
Maintainers usually reply within 1 day
-
Error messages hide the server's reason: users see only '400 Bad Request'Possibly taken @aman-code-io claimed this 3 days ago. Openbug good first issue ready
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TechTraverse/stac-higher#232 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TechTraverse/stac-higher#225 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TechTraverse/stac-higher#216 ·
Maintainers usually reply within 1 day
All issues in TechTraverse/stac-higher
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day