Skip to content

Conversation

@rfsaliev
Copy link
Collaborator

@rfsaliev rfsaliev commented Feb 2, 2026

Purpose: prevent long time SVS Tiered index lock at initialization time.

Logic:

  • First stage: create svs::...::MutableVamanaIndex instance with R/O shared lock
  • Second stage: set svs::...::MutableVamanaIndex created before under R/W unique lock

Which issues this PR fixes

  1. #7831

Main objects this PR modified

  1. 2 methods added to SVSIndex: createImpl() and setImpl()
  2. SVSTiered update job is modified to call createImpl() under shared lock and setImpl() under unique lock if backend index is empty.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Purpose: prevent long time SVS Tiered index lock at initialization time.
Logic:
 First stage: create `svs::...::MutableVamanaIndex` instance with R/O shared lock
 Second stage: set `svs::...::MutableVamanaIndex` created before under R/W unique lock
@jit-ci
Copy link

jit-ci bot commented Feb 2, 2026

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.10%. Comparing base (bd3769b) to head (14e528e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/VecSim/algorithms/svs/svs.h 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #903      +/-   ##
==========================================
+ Coverage   97.09%   97.10%   +0.01%     
==========================================
  Files         129      129              
  Lines        7493     7529      +36     
==========================================
+ Hits         7275     7311      +36     
  Misses        218      218              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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