Skip to content

fix: reindex is not working due to incorrect ctx propagation#1066

Merged
keegancsmith merged 1 commit into
mainfrom
05-27-fix_reindex_is_not_working_due_to_incorrect_ctc_propagation
May 28, 2026
Merged

fix: reindex is not working due to incorrect ctx propagation#1066
keegancsmith merged 1 commit into
mainfrom
05-27-fix_reindex_is_not_working_due_to_incorrect_ctc_propagation

Conversation

@michaellzc
Copy link
Copy Markdown
Member

@michaellzc michaellzc commented May 28, 2026

ref https://app.plain.com/workspace/w_01K95VFHPKPY4ERZD73YRRR0RH/thread/th_01KQSHJ734488GMP83EP44GSJ2/

during reindex, the background operation is canceled alone with the completion of http request. need to start its own context. hence, user clicking "reindex" never really works.

tested locally and confirmed clicking "Reindex now" created a new index file on disk:

notes the timstamp

CleanShot 2026-05-27 at 21 05 33

also validated the previous behaviour, the file stayed unchanged after clicking "Reindex now".

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@michaellzc michaellzc marked this pull request as ready for review May 28, 2026 04:05
@michaellzc michaellzc changed the title fix: reindex is not working due to incorrect ctc propagation fix: reindex is not working due to incorrect ctx propagation May 28, 2026
@michaellzc michaellzc requested review from a team and keegancsmith May 28, 2026 04:07
Copy link
Copy Markdown
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks. Funnily enough this is a race condition, so in some recent testing I did I didn't hit the race.

I was curious how we regressed here. Was due to this #933 which introduced ctx.

@keegancsmith keegancsmith merged commit 3b6cf8a into main May 28, 2026
8 checks passed
@keegancsmith keegancsmith deleted the 05-27-fix_reindex_is_not_working_due_to_incorrect_ctc_propagation branch May 28, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants