awa migrate: replica_identity lock timeout under load (message accuracy, and retrying the lock)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the replica_identity schema patch and the hint text emitted by awa migrate when SQLSTATE 55P03 occurs; main's v047_replica_identity is the reference for lock handling. Option 1 is a message-only change in the migration error path, so check the tests asserting that hint. Option 2 (retry with pause) is a design decision, so confirm the maintainers' choice before coding it. Done means the hint matches what was actually applied, or a bounded retry is in place with tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On 0.6, the replica_identity schema patch takes its lock with a 300ms lock_timeout. When a live worker holds a conflicting lock on awa.admin_dirty_queue_marks, awa migrate exits with 55P03 and the hint "Nothing was changed. Run awa migrate again, or raise lock_timeout for the migrating session."
The hint is inaccurate when other patches were pending: the runner commits each schema patch in its own transaction and replica_identity runs last, so the earlier patches are already applied. Re-running is safe (they report "already present"), but the message tells operators otherwise.
The patch upgrade rehearsal hit this under released 0.6.15 traffic on pg18; #770 makes the rehearsal re-run migrate on this error, the way the hint tells operators to.
Options:
- Reword the hint to say which patches were applied and that re-running is safe (0.6.18 candidate).
- Have
awa migrateretry the lock itself a few times with a short pause before giving up, so operators upgrading under load rarely see it (0.7 candidate).
main's v047_replica_identity sets no lock_timeout and waits instead; v050 and v052 bound lock waits at 2s, and lock cycles surface as deadlocks, which the runner already retries.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hardbyte/awa
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
0.6.19 release checklistApertaoperational
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
hardbyte/awa#861 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
hardbyte/awa#841 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hardbyte/awa
Issue simili
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryApertabug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsotto/sotto-authenticator#139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
registrystack/registry-stack#2924 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
foundry-rs/starknet-foundry#4733 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100