Follow-ups to the withLock() completion purge retry
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
- 45/100
Direzione di ricerca
Read src/binding/database/db_descriptor.cpp and the releaseDescriptorPin() helper introduced by #1110; compare the existing retry sites in the backup/checkpoint state destructors and purgeAfterCommit(). The issue describes three follow-ups, including an allocation failure edge case and a Deno timing concern. Done means deciding which follow-ups to address and aligning completeLockCallback with the shared helper where appropriate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
The #1092 fix (branch fix/withlock-purge-skip) makes withLock() completions in src/binding/database/db_descriptor.cpp retry DBRegistry::PurgeIfUnreferenced() after releasing their transient descriptor pin (completeLockCallback / LockCompletionPurge). Pre-push review left three follow-ups, all small and none reopening the leak.
Follow-ups
- Fold into the shared helper. This is the third copy of the "release the pin, then retry the purge" tail, after the backup/checkpoint state destructors and
purgeAfterCommit(). #1110 addsreleaseDescriptorPin()for it. Whichever of #1110 and the #1092 fix merges second should switchcompleteLockCallbackto it. Consider whether the helper should carry the lock completion's post-releaseuse_count() == 1fast path, which keeps ordinary completions offdatabasesMutex. - Allocation failure loses the retry.
descriptorKey()copies the path strings while the second, brief pin is held. If that copy throws, the pin is released with no retry. Every existing retry site has the same best-effort limit. Making the key copy non-throwing (for example, caching the key on the descriptor) would close it for all of them. - Purge runs after the caller's promise settles. This matches commit completion, so a possible close-time flush never runs ahead of the caller's continuation. On Deno, which runs the continuation inside the settle call, that continuation can briefly see an unreferenced database still registered. Deno is local-only and unsupported, so this is noted rather than fixed.
Review-Deferral: 0c80b1bff4f36a9c severity=nit category=maintainability
Review-Deferral: 4511645710d48f61 severity=nit category=concurrency
Review-Deferral: 2f0dfed9b51352fa severity=minor category=reliability
🤖 Generated with Claude Code (Claude Opus 5.5); posted via @cb1kenobi.
- Lingua principale
- C++
- Stelle
- 24
- Fork
- 3
- Merge medio
- 1g 14h
- PR unite (30g)
- 102
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 HarperFast/rocksdb-js
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
HarperFast/rocksdb-js#1131 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
HarperFast/rocksdb-js#1118 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
HarperFast/rocksdb-js#1133 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
HarperFast/rocksdb-js#1125 ·
I maintainer di solito rispondono entro 1 giorno
-
A durable commit is reported as failed when aftercommit hits a database closed after the commitForse già presa @cb1kenobi l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
HarperFast/rocksdb-js#1117 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HarperFast/rocksdb-js
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
antlr/grammars-v4#5219 ·
I maintainer di solito rispondono entro 1 giorno
-
[内容勘误] STL常用模式章节实战演练中代码有问题Apertadocumentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#335 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
deepseek-ai/DeepEP#830 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
google-ai-edge/LiteRT-LM#4701 ·
I maintainer di solito rispondono entro 1 giorno
-
status:needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PX4/PX4-Autopilot#29898 ·
I maintainer di solito rispondono entro 1 giorno