chaos: SIGKILL inside the low pass when resuming a pre-v0.20.0 snapshot position

Aperta
#461 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, postgresql
Ambito
databases, testing

Direzione di ricerca

Start with test/chaos/lowkeys_test.go and the low pass iterator round-trip tests that resume at record boundaries; inspect how the existing chaos case writes snapshot positions and checks read positions across restarts. Add coverage for a format version 4 position without from_min, including kills during the low pass and at its switch to the main pass. Done means the restarted snapshot delivers every row at least once, skips no keys, and low_pass_last_read and last_read never move backwards.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-up to #458 (v0.20.0).

The chaos suite added in #458 (test/chaos/lowkeys_test.go) SIGKILLs a snapshot after it has acked negative keys on a fresh v0.20.0 snapshot. It does not kill the connector while it is inside the low pass: the catch-up read over keys at or below zero that runs when a snapshot resumes from a position written by v0.14.0-v0.19.0 (no from_min).

That path is covered in-process (iterator round-trip tests resume from every record boundary of the low pass, and low_pass_last_read is monotonic), but not by a real process kill.

Add a chaos case:

  1. Write a snapshot position in the pre-v0.20.0 shape (format version 4, no from_min) for a table with keys on both sides of zero, mid main pass.
  2. Start the connector, let the low pass deliver and ack part of the keys <= 0, then SIGKILL.
  3. Restart and check, after the snapshot completes: every row delivered at least once, no key skipped, low_pass_last_read and last_read never moved backwards across the restarts.
  4. Repeat with the kill landing on the switch from the low pass back to the main pass.

Risk tier: Tier 1 (test only, data path).

Lingua principale
Go
Stelle
20
Fork
12
Merge medio
9h 50m
PR unite (30g)
29

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ConduitIO/conduit-connector-postgres

Tutte le issue di ConduitIO/conduit-connector-postgres

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.