drain_queue_in_batches loses the count of committed chunks when a later chunk fails

Aperta
#829 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
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, rust
Ambito
api, backend, databases

Direzione di ricerca

Start by locating the older library entry point drain_queue_in_batches and compare its return and error handling with drain_queue_batch and bulk::run_batches, which the issue says preserve partial runs in BulkError. Trace how committed chunks and cancelled job counts are represented. Done means callers can learn the count from earlier committed chunks when a later chunk fails, with the public signature change accounted for.

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

Descrizione

The library function drain_queue_in_batches returns a plain u64. If a chunk fails after earlier chunks have committed, it returns the error, and the caller cannot learn how many jobs the committed chunks cancelled.

The batched surfaces from #801 (drain_queue_batch with bulk::run_batches) return the partial run in BulkError { partial, error } and are not affected; this is only the older library entry point.

Fixing it changes a public signature, so it does not belong in a patch release.

Lingua principale
Rust
Stelle
37
Fork
8
Merge medio
14h 16m
PR unite (30g)
244

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 hardbyte/awa

Tutte le issue di hardbyte/awa

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.