Skip to content

fix(index): implement with_io_priority for FailNewFileStore test store#7495

Merged
Xuanwo merged 2 commits into
lance-format:mainfrom
LuciferYang:fix/fmindex-failnewfilestore-with-io-priority
Jun 26, 2026
Merged

fix(index): implement with_io_priority for FailNewFileStore test store#7495
Xuanwo merged 2 commits into
lance-format:mainfrom
LuciferYang:fix/fmindex-failnewfilestore-with-io-priority

Conversation

@LuciferYang

Copy link
Copy Markdown
Contributor

What

The lance-index test build is currently broken on main: error[E0046]: not all trait items implemented, missing: with_io_priority at rust/lance-index/src/scalar/fmindex.rs.

with_io_priority was added to the IndexStore trait in #7449. The FailNewFileStore test fixture was added later in #7422 (which branched before #7449 landed), so it never implemented the new method. Each PR was green on its own; together on main the test build fails — a semantic merge conflict. It only surfaces in the Build tests step because the fixture is #[cfg(test)].

Fix

Implement with_io_priority on FailNewFileStore by delegating to the inner store and re-wrapping, mirroring how the fixture already delegates its other read methods while keeping the injected new_index_file failure.

Verification

  • cargo check -p lance-index --tests — compiles (was failing on main).
  • cargo test -p lance-index --lib fmindex — 24 passed.
  • cargo fmt -p lance-index -- --check and cargo clippy -p lance-index --tests — clean.

The IndexStore trait gained `with_io_priority` (lance-format#7449), but the
FailNewFileStore test fixture added later (lance-format#7422, branched before lance-format#7449
landed) did not implement it, breaking the lance-index test build once
both were on main. Delegate to the inner store and re-wrap, preserving
the fixture's injected new_index_file failure.
@github-actions github-actions Bot added A-index Vector index, linalg, tokenizer bug Something isn't working and removed A-index Vector index, linalg, tokenizer labels Jun 26, 2026
@LuciferYang

Copy link
Copy Markdown
Contributor Author

cc @hamersaw @Xuanwo main ci failed

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Add a focused test that calls with_io_priority on the FailNewFileStore
fixture and asserts the reprioritized store still injects the
new_index_file failure, covering the delegating impl.
@github-actions github-actions Bot added the A-index Vector index, linalg, tokenizer label Jun 26, 2026
@LuciferYang

Copy link
Copy Markdown
Contributor Author

also cc @jackye1995

@Xuanwo
Xuanwo merged commit 621da36 into lance-format:main Jun 26, 2026
29 checks passed
@LuciferYang

Copy link
Copy Markdown
Contributor Author

Thank you @Xuanwo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-index Vector index, linalg, tokenizer bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants