[C API] Versioned, documented compatibility for the save/load stream format
Maintainer antworten meist innerhalb von 5 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 18/100
Rechercherichtung
Start with svs_get_version() in bindings/c/src/svs_c.cpp (line 69) and the save_version field in dynamic_index.h, which is currently 0.0.0. Trace svs_index_save_stream and svs_index_load_stream_dynamic to see where a format version would go in the stream header. Done means a format version is written and readable without loading the index, and a mismatched stream returns an error rather than crashing. The compatibility contract also needs a decision from maintainers before code work starts.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Please version the byte stream produced by svs_index_save_stream and consumed by svs_index_load_stream_dynamic, independently of the C API version, and document which versions a given release can load.
Why
valkey-search embeds the SVS stream in its RDB files. Users upgrade the module (and so SVS) in place, and replicas can briefly run a different build from the primary. Today the only version available to us is svs_get_version(), the C API version (bindings/c/src/svs_c.cpp:69); the serialized save_version in dynamic_index.h is 0.0.0. So we can't tell "same format, newer library" from "incompatible format", and have to either reject every RDB after any SVS bump or risk loading an incompatible stream.
Ask
- A format version in the stream header, and a C API call to read it from a stream without loading the index, or to report it from a handle.
- A compatibility contract: a release can load streams written by earlier releases within the same major format version, and fails cleanly (an error, not a crash) on a stream it can't load.
- Release notes that call out format version changes.
Consumer context
valkey-search (ALGORITHM SVS_VAMANA), C API submodule pinned at 8285340. Today vector_svs.cc rejects any svs_get_version() mismatch on load. With a format version we can accept compatible streams and rebuild from the keyspace otherwise.
- Vorherrschende Sprache
- C++
- Sterne
- 241
- Forks
- 48
- Ø Merge
- 4 T. 21 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus intel/ScalableVectorSearch
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
intel/ScalableVectorSearch#356 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
intel/ScalableVectorSearch#469 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 32/100
intel/ScalableVectorSearch#460 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
intel/ScalableVectorSearch#438 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
CI: tier the test matrix into PR / main / nightly to cut Actions minutesEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 32/100
intel/ScalableVectorSearch#432 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
Alle Issues in intel/ScalableVectorSearch
Ähnliche Issues
-
runtime: lf_f128_mod is documented as fmodq (truncating) but implements floor-based modulo; unusedOffeninternal correctness low priority rt_lib
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 87/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetEvtl. vergeben @matejk hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pocoproject/poco#5674 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug docs GUI
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
sonic-pi-net/sonic-pi#3609 ·
-
Unreachable code warningOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
SanderMertens/flecs#2395 ·
Maintainer antworten meist innerhalb von 1 Tag