Name the path and the real failure when SQLite cannot use a database file
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
- 50/100
Direzione di ricerca
Start in dbkit/sqlite where the database path is opened and checked, and in the Classify function the issue names as the place to map SQLite failures to messages. Reproduce the four cases in the table (folder, non-database file, read-only file, file in a read-only folder) and see which prefix each one currently gets. Done means each case returns an error that names the path and states the cause, and the "read the database path" prefix appears only for read failures. The payload names no test file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
When a SQLite address names something SQLite cannot use, dbkit/sqlite v0.1.0 lets the handle open and the first statement fails with an unclear error. Measured with Gophenberg, which opens through dbkit/sqlite:
| The path names | First statement fails with |
|---|---|
| a folder | dbkit: read the database path: unable to open database file (14) |
| a file that is not a database | dbkit: read the database path: file is not a database (26) |
| a read-only file | dbkit: read the database path: attempt to write a readonly database (8) |
| a file in a read-only folder | dbkit: read the database path: ... (1544) |
Two things are off:
- The prefix says "read the database path" even when SQLite failed a write.
- No message names the path, so the operator cannot tell which file is wrong.
Why
An operator who points a site at the wrong file should learn which file and what is wrong with it, for example "is a folder, not a database file" or "is read only". Classify and the open-time file check in dbkit/sqlite are the natural place, so every product on dbkit gets the same answers.
- Lingua principale
- Go
- Stelle
- 69
- Fork
- 3
- Merge medio
- 9h 11m
- PR unite (30g)
- 38
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 gopherium/framework
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di gopherium/framework
Issue simili
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ClickHouse/ch-go#1218 ·
I maintainer di solito rispondono entro 13 giorni
-
effort:s impact:low raised-by:reviewer risk:low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
medici-finance/assay#4251 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
automation models
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
golang-migrate/migrate#1457 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno