Skip to content

chore: force redeploy to flush D1 binding cache after migration 0003#142

Merged
liplus-lin-lay merged 1 commit into
mainfrom
chore/redeploy-flush-d1-binding
Apr 28, 2026
Merged

chore: force redeploy to flush D1 binding cache after migration 0003#142
liplus-lin-lay merged 1 commit into
mainfrom
chore/redeploy-flush-d1-binding

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

概要

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 することで解消を狙う。

期待される効果

Refs #135

実行モード

auto mode、AI 自律 self-review 経由で merge。--auto flag は付けない (operations.md auto mode rule)。

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
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
github-rag-mcp af7a8b8 Apr 28 2026, 02:33 PM

@liplus-lin-lay liplus-lin-lay added the bug 動いていない、壊れている label Apr 28, 2026
@liplus-lin-lay liplus-lin-lay self-assigned this Apr 28, 2026
Copy link
Copy Markdown
Member Author

@liplus-lin-lay liplus-lin-lay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI self-review: 空 commit による fresh deploy 試行。コード変更ゼロ、リスクなし。merge 後 Workers Builds が完了 → 次の cron で error 観測すれば解消判定。これで治らなければ Worker isolate cache 仮説は外れ、D1 time-travel または別経路へ。auto mode、direct merge へ。

@liplus-lin-lay liplus-lin-lay merged commit 500d6e5 into main Apr 28, 2026
3 checks passed
@liplus-lin-lay liplus-lin-lay deleted the chore/redeploy-flush-d1-binding branch April 28, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 動いていない、壊れている

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant