Keep a stored record of catalog changes the pipeline gives up on, and alert on them

Open
#252 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Read issue #220 and trace the pipeline code that retries and drains catalog changes, including the existing attempt cap and bad data handling. Identify the migration numbering convention and the relevant tests; the issue names no files or entry points. Done means a drained change is stored with its reason and can be replayed, with an alert when stored rows appear; the retry policy and treatment of other data-shape errors also need decisions.

Written by the indexing model from the issue text.

Description

enhancement migration queue: scale readiness (M3)

Follow-up to #220.

After #220's fix, a catalog change that fails with an unexpected error is retried, but only up to the existing cap (5 attempts, 15 s apart). After that — or immediately for malformed data — it is still discarded with only a log line. A database outage longer than roughly a minute would therefore still lose changes.

Task

  • A table for given-up changes (needs a migration number reserved), written when a change is drained for bad data or at the attempt cap, with the reason
  • A way to replay them
  • An alert when rows appear
  • Reconsider the cap: age-based or longer once a stored record exists
  • Decide whether other data-shape errors (e.g. TypeError/AttributeError from an odd item) should count as bad data and drain immediately

Acceptance criteria

  • Test: a change drained at the cap lands in the table and can be replayed
Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.