You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] A stalled index clear can leave retry waiting indefinitely #50
If clearing the code index never finishes, retrying indexing or setting it up again can remain stuck waiting for that clear. Users need a bounded wait and a clear explanation when clearing cannot finish.
Context
Follow-up to deferred yellow finding 1 from the review of PR #34, which fixes #23. Review task: 01a19ab9-e18d-7748-b3ae-1b5177f5849e. The finding was reported at 78b3a10 and checked against PR head 9922e83.
The local clear path waits for collection deletion without applying the indexing stop deadline. Retry setup then waits for that clear. This is a conditional failure path found by source inspection, not a reproduced live database hang. Whether the database client supplies its own effective request timeout remains unverified.
verified: read-only git show commands at the full PR head for the indexing manager and orchestrator returned await this.clearing, const signal = new AbortController().signal, and await this.writeGate.run(signal, () => this.vectorStore.deleteCollection()).
Bound the clear wait using the indexing stop limit, or verify and document an existing client timeout that reliably bounds the whole clear operation.
If clearing cannot complete within that bound, finish the waiting operation with a clear user-visible reason rather than leaving retry pending indefinitely.
Keep protection against an old clear deleting data from a newer indexing attempt.
Add regression coverage for a clear operation that does not settle and for the resulting retry behavior.
Constraints/Preferences
Keep this follow-up separate from PR #34. Do not assume that the database client has no timeout; verify its behavior before relying on it.
Activity