Skip to content

Fix iterators/compaction issue - #414

Open
razdoburdin wants to merge 2 commits into
mainfrom
dev/razdoburdin/concurent_patch
Open

razdoburdin wants to merge 2 commits into
mainfrom
dev/razdoburdin/concurent_patch

Conversation

@razdoburdin

Copy link
Copy Markdown
Member

Fix wrong search results and unsafe vector reads during concurrent updates and compaction.

  1. Hold the search lock until internal IDs are converted to external labels. Mark missing labels as invalid.
  2. Track returned labels and clear cached IDs after compaction, so batch iterators avoid duplicates and do not stop too early.
  3. Add on_datum and on_data callbacks so callers can copy vectors while locks are held.

This branch has not been deployed

No deployments
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