test_backup_job.py: the store outage test lists the restore spool before the job removes its entry

Aperta Adatta ai principianti
#1,158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
testing

Direzione di ricerca

Leggi test_a_store_outage_mid_download_leaves_the_restore_running_and_it_completes in tests/test_backup_job.py e confronta la sua asserzione sullo spool con l’ordine di pulizia del job di ripristino in crates/engine/src/backup/restore.rs. Aggiorna il test affinché controlli lo spool finché non rimane alcuna voce restore-, usando una scadenza. Il lavoro è completato quando il test attende la pulizia prima di verificare che lo spool sia vuoto.

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

Descrizione

test_a_store_outage_mid_download_leaves_the_restore_running_and_it_completes in tests/test_backup_job.py lists the restore spool right after _wait_active and _count, and asserts that the spool holds no restore- entry (lines 1210 and 1211 on main at c2e9a32b0).

The restore job removes its spool entry last. In crates/engine/src/backup/restore.rs on main, finish flips the target ACTIVE at line 911, the job logs its ACTIVE line at line 918, and remove_spool_entry runs at line 991. So the test can see the target ACTIVE and still find the entry, and then it fails with the spool entry stays.

No CI run has failed on this assertion yet. It is the same kind of race as #1157, with the spool in place of the log.

The fix is in the test: list the spool until it holds no restore- entry, with a deadline.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
5g 1h
PR unite (30g)
132

Preparare l'ambiente

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 ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.