Repository navigation
fix(index): validate vector segments added by transaction actions - #11213
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Main moved these tests into their own module, where the readers were previously in scope through the parent module. The compatibility refactor moved those imports out, so import them in the consuming test module.
|
Blocked: Head: I inspected the logs, compared the Java build configuration with current Please rerun the failed jobs in this workflow run. If dependency resolution fails again, check the runner's Maven repository/cache configuration and restore artifact access before rerunning. |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
Final-state validation continues to close the raw transaction admission gap while preserving atomic index replacement after the merge from main. All 125 targeted tests passed locally on this head: 80 composite transaction, 29 raw index commit, 8 file-contract, and 8 IVF optimize tests.
Transaction V2
AddIndexSegmentactions skipped the vector compatibility validation already used byCreateIndex(#10761). Sequential commits or multiple additions could publish incompatible vector segments under one index name.Apply that validation after all transaction actions have run, using the final segment list in regular and detached commits. Resolve new fields and storage bases through the proposed manifest. Incompatible additions fail, while complete replacements can change the index contract. File-based contract checks live in a dedicated IVF compatibility module, keeping
ivf.rswithin the module-size limit.Fixes #10728
Validation:
ciprofile test harness. The six new cases cover metric, quantization, and sub-index differences, regular and detached commits, newly added fields, copied details, and ANN recall after compatible replacements.cargo fmt --allandcargo clippy --all --tests --benches --profile ci -- -D warningspassed.python3 ci/check_module_size.py origin/main HEADpassed;ivf.rsis 389 KB, below the 400 KB limit.Change walkthrough
flowchart LR A["AddIndexSegment actions"] --> B["Build proposed manifest"] B --> C["Compare surviving segments"] C --> D{"Contracts compatible?"} D -->|Yes| E["Publish manifest"] D -->|No| F["Reject commit"]Read contracts from segment files, resolving new fields and storage bases through the proposed manifest.
Read: Commit boundary → Compatibility validation → Regression cases.
Snapshot: 883a184