Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Publishing a frozen annotation batch rewrote its id join key and withdrew the touched fragments from the ID index, so cold point reads could fall back to scans after publication. Keep the original physical ID column in the prepared Lance 13 column update and tombstone the redundant ID mapping in the new narrow file. Annotation indexes still lose coverage for changed values; no index rebuild or Lance OSS change is needed.

The adjustment checks the native update's row layout and file mappings before preserving ID index coverage. Prepared-transaction validation accepts the unused slot while continuing to reject foreign fields and invalid file mappings. The writer still emits the unused ID bytes; this change preserves query performance rather than eliminating that write.

Testing

  • Reproduced the regression before the fix: updating one annotation reduced ID index coverage from fragments [0, 1] to [1].
  • On the previous stacked head, all 15 staging tests passed, including repeated publication, unchanged ID index UUID/coverage/physical mapping, current point-read plans, annotation index invalidation, deleted rows, both row ID modes, concurrent updates, and bounded drain.
  • On the previous stacked head, all three RF3 publication recovery tests passed, including unknown publication outcomes and recovery before source closure, with additional invalid-descriptor cases.
  • Previous stacked-head repository checks passed: formatting; workspace Clippy and Rust tests (958 passed, 330 ignored); Python tests (220 passed, 11 skipped, 1 expected failure); Ruff; Pyright; and ingestion service,http-client feature Clippy with warnings denied.

This fix applies independently to the annotation publication path on main. The refreshed standalone head must pass its own checks before merge. Refs #378.

@beinan
beinan marked this pull request as ready for review October 25, 2026 09:29
@beinan

beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

All HA test steps passed on 1d8db67206a85d1fc8c023cc642bb37908394dee, including etcd recovery, compaction recovery and application process recovery. The job reached its 60-minute limit while saving the Rust cache, so the overall check was cancelled and is not a green merge gate.

The branch now includes the same 75-minute HA job budget already merged in #579. No product code, test command, assertion or runtime timeout changed. The new head must finish its own checks before merge. Refs #378.

@beinan
beinan force-pushed the codex/annotation-preserve-id-index branch from 7ef45ca to c37abbb Compare October 25, 2026 12:15
@beinan
beinan changed the base branch from codex/annotation-point-scan to main October 25, 2026 12:15
@beinan
beinan merged commit c2cbcb6 into main Oct 25, 2026
14 of 28 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
)

## Summary
The deployed annotation probe can seed an ID B-tree, accept batches up
to 2,048 rows, and verify that publication preserves the original index
UUID, all fragment coverage and indexed point-query plan. Two
independently spawned writers retain durable request/ACK journals and
cross-ingress reads, with cumulative client phase timers to distinguish
encoding, journal work and response waits.

Documents the single-shard acceptance checks, required memory budgets
and staging limits that are fixed by the durable mutation contract. This
extends the test client; it does not change service semantics or add
mutation recovery retries.

## Testing

Recorded deployment measurements describe the earlier tested stack.
Current-head CI is evaluated separately.
- Workspace formatting, Clippy and Rust tests: 958 passed, 330 ignored.
- Python: 220 passed, 11 skipped, 1 xfailed; Ruff and Pyright passed.
- `service,http-client` Clippy and release probe build passed.
- Release probe against actual local RF3/Lance 13 roles: 65,536 indexed
turns, 2,048-row batches, 266,240 updates in a 10-second correctness
run; 260 post-ACK reads plus 64 final samples, complete value/index
verification, source reclamation and final empty staging. No refusals or
read mismatches. This is not a production throughput qualification.

The deployment probe (#589) is on main. ID-index preservation (#591) is
already on main. Refs #378.
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