Flaky: a_retry_waits_on_its_registration_and_another_backup_is_refused gets TableAlreadyExistsException

Aperta Adatta ai principianti
#951 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
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
databases, testing

Direzione di ricerca

Inizia in crates/engine/src/backup/tests.rs, in corrispondenza di backup::tests::a_retry_waits_on_its_registration_and_another_backup_is_refused; l’issue individua il problema di temporizzazione intermittente intorno a claim_restore_delay e all’asserzione vicino alla riga 19469. Sostituisci il ritardo fisso con un gate controllato dal test che mantenga aperta la prima registrazione finché non viene inviata la seconda operazione di ripristino. Esegui questo test e conferma che restituisce in modo consistente TableInUseException per la seconda operazione di ripristino.

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

Descrizione

ci:stability

backup::tests::a_retry_waits_on_its_registration_and_another_backup_is_refused in crates/engine/src/backup/tests.rs fails some CI runs with TableAlreadyExistsException("Table already exists: MusicRestored").

Runs that failed:

  • main at 89b94274e, run 42935162912, run-tests (stable), 2026-11-11 00:55 UTC. The panic is at tests.rs:19469, the assertion on the restore of the second backup. The Test runs of main at bf5ea8fc1 and 672d07c6e passed.
  • #900 at 91684d9e4, run 42950822755, run-tests (stable), 2026-11-11 03:13 UTC, with the same panic and message. run-tests (1.88.0) failed in the same run.

The test holds the first restore's registration for 400 ms (claim_restore_delay). It expects a restore of another backup into the same table name to answer TableInUseException while that registration is in flight. The failing runs answered TableAlreadyExistsException, the answer for a target that exists. That fits a second request that arrives after the first registration ended. The test then depends on the timing of the runner.

Proposed fix: hold the first registration until the test sends the second restore. A gate that the test opens can replace the fixed delay.

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

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.