[Bug]: WatchStore recovery overwrites its readable backup
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by locating FileWatchStore.initialize() and its snapshot save and recovery paths; the issue does not name file paths or tests. Trace how the readable backup is used and how the primary is rewritten, then look for tests covering invalid primary JSON and a failed final move. Done means a retry can still recover the watch from the backup after that move fails.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue Origin
Observed or reproduced in a real environment. The reproduction uses the real local RAGFS backend and on-disk snapshots.
Bug Description
When the primary watch-task snapshot is invalid JSON and the backup is readable, FileWatchStore.initialize() recovers the task rows from the backup. While rewriting the primary, the normal save path rotates the invalid primary over the only readable backup. If installing the recovered primary fails after that rotation, no readable snapshot remains.
Steps to Reproduce
- Use a local
FileWatchStoreand create a watch. Update it once to generate a valid backup. - Write invalid JSON to
.watch_tasks.json. - Reopen the store. Inspect the backup after initialization. To exercise a failed restore, reject only the move from the temporary snapshot to the primary and then retry initialization.
Expected Behavior
Restore the primary from the readable backup without rotating the corrupt primary over it. If the final move fails, a retry should still be able to load the watch from the same backup.
Actual Behavior
The backup contains the corrupt primary bytes after both a successful restore and a simulated failure of the final move.
OpenViking Version
Current main at 5043e1f, with the local RAGFS Python binding from the OpenViking 0.5.3 macOS wheel.
Python Version
Python 3.12.
Operating System
macOS arm64.
Additional Context
#7133 and #7086 cover startup when snapshots cannot be read. This reproduction starts from a readable backup and fails during the recovery write. It was investigated and reproduced with AI assistance.
- Lingua principale
- Python
- Stelle
- 41.8k
- Fork
- 3.4k
- Merge medio
- 19h 29m
- PR unite (30g)
- 500
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un 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 volcengine/OpenViking
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
volcengine/OpenViking#7485 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
volcengine/OpenViking#7210 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
volcengine/OpenViking#7205 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failureForse già presa @97Three l’ha presa 8 giorni fa. Apertabug kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
volcengine/OpenViking#7014 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: memory.prefetch_search_topn is inert above 5 (call site omits limit), plus two docstrings state the wrong defaultsForse già presa @peterzhang987723 l’ha presa 8 giorni fa. Apertakernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
volcengine/OpenViking#6923 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di volcengine/OpenViking
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
aws-samples/sample-per-model-bedrock#857 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
521xueweihan/HelloGitHub#4328 ·
-
documentation maintainer-managed
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
awslabs/visual-asset-management-system#1418 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno