Repository navigation
fix(index): retry FTS write and delete failures on the next poll (doc, wiki, push) - #283
Merged
Merged
Conversation
doc / wiki の取り込みで FTS5 の書き込みに失敗したら upsert 全体を失敗扱いにし、store の版を進めないようにした。削除では store 記録を最後に、他の面がすべて消えたときだけ消すようにした(cron の doc / wiki reap と push 経路)。doc の削除が部分失敗した run は tree ETag を据え置き、次の run が実際にやり直す。これまでは、どちらの失敗でも FTS5 行が古いまま、または消えないまま二度と回収されなかった。Closes #282 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GYtSBq9rYuBcTNmr473APb
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
github-rag-mcp | d64dd5b | Oct 13 2026, 08:45 AM |
liplus-lin-lay
commented
Oct 13, 2026
liplus-lin-lay
left a comment
Member
Author
There was a problem hiding this comment.
セルフレビュー(auto モード)
- 受け入れ条件:#282 の目的「更新・削除の途中で FTS だけが失敗しても、次の poll で回復する」を、doc / wiki / push の3経路それぞれで、失敗した run → 次の run でやり直し → store が最後に消える、という流れのテストで確かめた。doc では tree ETag の据え置きもテストで確かめた。CI(test / Workers Builds)は通過
- 範囲:#282 の対象ファイル一覧には webhook.ts(push 経路)が入っていなかったが、同じ穴があるため、規則を一つにそろえる目的の範囲内として含めた。issue / コメント側の削除(webhook.ts:228 など)は store 記録を持たない別の作りなので、今回は対象外とした
- 挙動の変化:Vectorize の削除だけが失敗した場合も store が残る。そのため、次の run で全部の面を消し直す(各面の削除は何度実行しても結果が同じなので害はない)
- wiki は ETag ではなく巡回するカーソルで動いているので、失敗したページは次にそのページまで巡回が来たときに拾い直される(すぐではなく、いずれ拾われる)
- ワークスペース側で後回しにした作業:なし
- 次の手順:squash merge
— Claude Lin
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.
#282 の修正です。
failed > 0による ETag 据え置きにそのまま乗る)#281 の全文索引には依存していません。
— Claude Lin
🤖 Generated with Claude Code
https://claude.ai/code/session_01GYtSBq9rYuBcTNmr473APb