Skip to content

fix(cache): bypass index listing caches without generation tokens - #11682

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
a-erofeev:erofeev/index-cache-generation-guards
Dec 1, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
a-erofeev:erofeev/index-cache-generation-guards

Conversation

@a-erofeev

Copy link
Copy Markdown
Contributor

A manifest location without an ETag produces shared index-listing cache keys that cannot distinguish table generations at the same URI/version. A stale empty listing can therefore hide indices present in the current manifest.

Bypass the raw, derived and inferred listing caches when no manifest generation token is available. Keep the existing cache path for ETag-backed locations. Storage without ETags remains supported, with additional metadata I/O instead of reusing an unverifiable shared entry. No persisted format or public API changes.

Two regression cases use the checked-in historical fragment-reuse fixture. They seed a stale empty cache entry, then verify that both raw and derived listing paths return the fixture's three real index entries. The historical data and decoding behavior are unchanged.

Transaction-cache generation collisions are tracked separately in #8916. This change is independent of that PR and of the LBM adapter/bindings.

Validation

  • Both regression cases fail on main e9039a75af62 with test code only and pass with this fix.
  • Full lance-table-runtime tests, integrations and doctests: 655 passed, zero failures.
  • Fragment-reuse tests: 650 passed, two existing ignored cases, zero failures.
  • cargo fmt --all and strict cargo clippy --all --tests --benches -- -D warnings passed.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The conservative bypass is appropriate when a manifest generation cannot be established. Both stale-listing regressions fail before the fix and pass on this head.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 1, 2026
@Xuanwo
Xuanwo merged commit c3862d8 into lance-format:main Dec 1, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants