Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Expose POST /api/v1/annotations/{table}/filter-status through configured physical-shard routes. Each response returns bounded matching IDs from one pinned Lance snapshot, with its shard scope, materialized/applied positions, and native BTree coverage. Native filtering includes the unindexed Lance tail and projects only IDs. Active and frozen updates remain immediately visible to point reads and become filter-visible after materialization.

Queries retain the existing GC reader pin through native work, reject stale owners after storage I/O, and preserve native workspace after HTTP timeout until the query finishes. Both ingress and owner return an explicit memory-capacity refusal when optional filter work cannot reserve shared memory. Recovery, deadline and native-query errors remain query failures; the owner retains their diagnostic in its error log. Requests specify one bucket; clients may query buckets concurrently. Results are unordered and explicitly report truncation; this endpoint provides no pagination or cross-shard snapshot.

Testing

  • Core staging suite: captured snapshots, active/frozen updates, quoted/NULL predicates, partial native-index coverage, escaped response limits and retained readers.
  • Real RF3 HTTP tests: two shards and two ingresses, independent progress, takeover catch-up, post-I/O fencing, timeout-held resources and prompt ingress memory refusal.
  • Status maintenance/reclamation tests: held filters protect old native files until release, including publication recovery.
  • Latest owner-admission follow-up: formatting and service/http-client Clippy passed; all 16 annotation HTTP tests passed (2 existing pressure tests ignored), including exhausted owner memory, successful queries after release, and a stopped-applier failure that must not be reclassified as capacity.
  • Current follow-up: full repository helper passed 1,104 Rust tests across 33 test groups; existing Python binding suite: 220 passed, 11 skipped, 1 xfailed in 41.54s. Workspace formatting/Clippy, Ruff and Pyright passed.
  • Fresh distributed mixed-load validation passed: ingestion, annotation updates, point reads and materialized status queries together, followed by full-value verification, drain, owner replacement and cross-ingress reads. Capacity refusals were counted separately from successful queries.

Refs #378

@beinan
beinan marked this pull request as ready for review October 31, 2026 09:25
@beinan
beinan merged commit f3d5d2f into lance-format:main Oct 31, 2026
14 checks passed
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.

1 participant