Skip to content

fix(store): make cleanupOrphanedVectors atomic across both vector tables (#766) - #856

Merged
tobi merged 1 commit into
mainfrom
fix/766-orphan-vector-cleanup-atomic
Aug 13, 2026
Merged

fix(store): make cleanupOrphanedVectors atomic across both vector tables (#766)#856
tobi merged 1 commit into
mainfrom
fix/766-orphan-vector-cleanup-atomic

Conversation

@tobi

@tobi tobi commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Summary

Supersedes #766 (same fix, rebased onto post-#851 main).

Test plan

  • Local Bun store tests: 264 pass, 13 skip
  • Local Node store tests: 264 pass, 13 skip
  • Local Node test/: 976 pass, 73 skip
  • Local Bun test/: 976 pass, 80 skip
  • CI Bun + Node 22/23 green

…les (#766)

An interruption between the two DELETEs could leave content_vectors claiming
chunks were embedded after vectors_vec had already dropped them, so a later
reactivation skipped re-embed. Count and both deletes now share BEGIN IMMEDIATE.
@PowderAddicts

PowderAddicts commented Aug 13, 2026 via email

Copy link
Copy Markdown

@tobi
tobi merged commit 013c9ce into main Aug 13, 2026
12 of 14 checks passed
@tobi
tobi deleted the fix/766-orphan-vector-cleanup-atomic branch August 13, 2026 02:19
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.

2 participants