Skip to content

[BUG] skip deleted nodes in checks#44

Merged
rescrv merged 3 commits into
masterfrom
rescrv/invariant-check
Mar 24, 2026
Merged

[BUG] skip deleted nodes in checks#44
rescrv merged 3 commits into
masterfrom
rescrv/invariant-check

Conversation

@rescrv
Copy link
Copy Markdown

@rescrv rescrv commented Mar 21, 2026

Avoid including deleted elements when validating inbound connection counts in the HNSW graph check.

Tests live in the chroma-core/chroma GitHub repo.

Co-authored-by: AI

Avoid including deleted elements when validating inbound connection counts in the HNSW graph check.

Tests live in the chroma-core/chroma GitHub repo.

Co-authored-by: AI
@rescrv rescrv requested a review from HammadB March 21, 2026 00:52
@rescrv rescrv changed the title [BUG} skip deleted nodes in checks [BUG] skip deleted nodes in checks Mar 23, 2026
@rescrv
Copy link
Copy Markdown
Author

rescrv commented Mar 23, 2026

Summarizing a discussion: We've moved off HNSWlib for our centroids, so this only affects legacy collections. The change is isolated to checkIntegrity. Further, the only corruption of the index this would tolerate would be for deleted nodes, which is something don't do for the centroid-based approach (IIRC---I may be wrong here).

The downstream consequences of this change can only influence the std::cout of min1, max1 in the integrity check.

@rescrv rescrv merged commit 802e9b5 into master Mar 24, 2026
10 checks passed
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