chore: force redeploy to flush D1 binding cache after migration 0003#142
Merged
Conversation
Workers Builds の現行 isolate が migration 0003 (DROP + CREATE search_docs_code_fts) 前の prepared statement state を保持していて、production の FTS5 upsert が console 側で healthy にも かかわらず SQLITE_CORRUPT_VTAB を返し続けている。空 commit で fresh deploy を強制し isolate state を回す。 Refs #135
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
github-rag-mcp | af7a8b8 | Apr 28 2026, 02:33 PM |
liplus-lin-lay
commented
Apr 28, 2026
Member
Author
liplus-lin-lay
left a comment
There was a problem hiding this comment.
AI self-review: 空 commit による fresh deploy 試行。コード変更ゼロ、リスクなし。merge 後 Workers Builds が完了 → 次の cron で error 観測すれば解消判定。これで治らなければ Worker isolate cache 仮説は外れ、D1 time-travel または別経路へ。auto mode、direct merge へ。
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.
概要
PR #138 で migration 0003 (DROP + CREATE
search_docs_code_fts) を merge し、その後 console 経由で production D1 に DDL を適用済み。console 側からは MATCH / INSERT / integrity-check すべて PASS で完全健全だが、production Worker のみ FTS5 upsert でSQLITE_CORRUPT_VTABを出し続ける状態(migration apply から 65 分以上経過しても解消せず)。加えて 14:16 UTC 以降は doc upsert (nat_fts 経路、porter tokenizer) も同じ error を出すようになり、両 FTS5 table が Worker 側だけで stale view になっている可能性が高い。
仮説
Workers Builds で稼働中の現行 isolate が migration apply 前の D1 prepared statement / binding state を保持しており、DROP+CREATE 後の新 schema を見ていない。空 commit による fresh deploy で isolate state を flush することで解消を狙う。
期待される効果
:30UTC pollDiffs /:00UTC light) でSQLITE_CORRUPT_VTABが消えるRefs #135
実行モード
automode、AI 自律 self-review 経由で merge。--autoflag は付けない (operations.md auto mode rule)。