Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions tests/unit/test_svs_tiered.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,29 +477,6 @@ TYPED_TEST(SVSTieredIndexTest, updateVectorsDuringUpdateJob) {
// an exact count, and it is the assertion that fails if a job carried a replaced vector into
// the backend after its delete.
ASSERT_EQ(tiered_index->indexSize() - svs_index->getNumMarkedDeleted(), n * new_per_label);

if (!svs_index->isCompressed()) {
// Every replacement finds its own label. Asserted only for an uncompressed index: a
// compressed one trains its stored form on the vectors it was given, so values this far
// outside the original range are clipped.
// MOD-18994: a replacement vector written late in the update loop can land in the first
// sub-batch of a large incremental backend drain, before any of its true neighbors (the
// other replacements) exist in the graph yet (VamanaBuilder::construct's fixed entry
// point + sequential sub-batches), leaving it under-connected relative to vectors drained
// later in the same call. It is still reachable, just via few edges - a wider runtime
// search window than the 200 used at construction reliably finds it without touching the
// graph's actual connectivity.
SVSRuntimeParams wideWindow = {.windowSize = 250};
VecSimQueryParams wideWindowParams = CreateQueryParams(wideWindow);
for (size_t i : {(size_t)0, (size_t)1, n / 2, n - 1}) {
for (size_t j = 0; j < new_per_label; j++) {
TEST_DATA_T query[dim];
GenerateJitteredVector<TEST_DATA_T>(query, dim, i, replacement_base * (j + 1) + i);
auto verify = [&](size_t id, double score, size_t rank) { ASSERT_EQ(id, i); };
runTopKSearchTest(tiered_index, query, 1, verify, &wideWindowParams);
}
}
}
}

TYPED_TEST(SVSTieredIndexTest, addRelabelAndUpdateTogetherUnderLoad) {
Expand Down
Loading