A background pass holds the database file after a runtime drop
I maintainer di solito rispondono entro 1 giorno
@robinskil ci sta già lavorando.
Dal 17/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
Drop a Runtime. Open the same beacon.db again. Beacon reports a lock error.
A background pass keeps an Arc<FileStatsService> across an await. The service holds the store, the
registry and the redb database. The database holds the file lock.
Drop for FileStatsService aborts the tasks (beacon-core/src/file_stats.rs:727). Drop runs only
after the last Arc goes. The task holds that Arc. The abort waits for the task, and the task
does not stop.
Both tasks have this shape: the timer at file_stats.rs:508, and the startup pass at
file_stats.rs:542.
Evidence
Set BEACON_FILE_STATS_ON_STARTUP=true. 4 of 7 tests in tables_store_lock_release fail. One test
uses an empty datasets folder, so the volume of work is not the cause.
Effect
A server process that exits does not see this. An embedded caller closes a database and opens the
file again. It does see this.
The defect blocks a default of BEACON_FILE_STATS_ON_STARTUP=true. See #394.
Proposal
- Add a cancellation token. The collector reads it between awaits.
- Add
Runtime::shutdown(). It cancels the tasks, then joins them. - Abort the tasks in
Drop, for a caller that skips step 2.
- Lingua principale
- Rust
- Stelle
- 16
- Fork
- 4
- Merge medio
- 19h 58m
- PR unite (30g)
- 39
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
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 maris-development/beacon
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
maris-development/beacon#704 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
maris-development/beacon#681 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort-S python
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
maris-development/beacon#494 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort-S tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
maris-development/beacon#493 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
maris-development/beacon#687 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di maris-development/beacon
Issue simili
-
autofix:working
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
libracoder/kiri#1138 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
roc-lang/basic-webserver#277 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
samkerrcode/opengent#113 ·
I maintainer di solito rispondono entro 1 giorno
-
app bug session
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno