Repository navigation
fix(storage): skip v5 rebuild when a racing migrator already committed CURRENT (#135) - #136
Merged
Merged
Conversation
…d CURRENT The first migration transaction rejected an in-transaction re-read of CURRENT_SCHEMA_VERSION (6): a connection that read v5 before BEGIN IMMEDIATE crashed with STORAGE_FAILURE when a racing migrator committed v6 first, and never reached the v6 skip in the notes transaction. Extract v5RebuildDecision (skip on 5 or CURRENT, refuse unknown) with a matrix regression test. Independent two-connection repro and verification: staff1 (106 review).
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #135.
Что
Во время review #106 staff1 воспроизвёл гонку: A читает
user_version=5, B коммитит v6, A входит в первую миграционную транзакцию и падаетSTORAGE_FAILURE: unsupported SQLite user_version: 6, не доходя до v6-skip во второй транзакции. Фикс и подтверждение FAIL→PASS не попали в merge #106 (0350bf8) — force-push ветки произошёл после мержа.v5RebuildDecision(lockedVersion): skip на5 || CURRENT(6), rebuild на 0–4, refuse на unknown.invalid_relay_response_proof) и точная формулировка challenge-rate-limit комментария — ниты review feat(relay): per-role memory notes with token-enforced scoping (#22) #106.Проверки
Полный
pnpm verifyзелёный поверх origin/main (0350bf8). Детали в #135.Критичность
Release-blocker 0.2.0 и блокер окна re-init: два процесса против одной БД (relay + doctor/второй writer) поймают гонку в live. Прошу мержить до старта окна; review staff1 (автор repro) уже верифицировал сам фикс — короткий взгляд на diff достаточен.