Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Multiple HTTP ingresses now route narrow annotation reads and updates to one fenced owner runtime. A successful update waits for quorum persistence and application; readers through another ingress see the current narrow annotation, including after publication and source GC. Forwarders stream the original request bytes without decoding Arrow or opening Lance.

The owner exposes producer, update, point-read, and close endpoints with existing credentials and receipts. Data and control admission are independent, response memory remains bounded, and epoch changes fence an old listener. Deployment supplies a stable owner address and authentication wrapper. Application role/configuration and etcd integration follow separately.

Testing

  • cargo fmt --all -- --check
  • cargo clippy -p lance-context-ingest --all-targets --features service,http-client -- -D warnings
  • cargo test -p lance-context-ingest --features service,http-client annotation -- --nocapture: 14 passed, 0 failed. The ignored child-process role is explicitly exercised by the passing SIGKILL recovery test.
  • Real RF3/Lance HTTP test: two ingresses, immediate visibility, partial-upload admission, original request outcomes after GC, fencing, owner replacement at the same address, field clearing, and producer slot reuse.

Based on #579. Refs #378.

@beinan
beinan marked this pull request as ready for review October 25, 2026 07:58
…r-http

# Conflicts:
#	crates/lance-context-ingest/src/annotations/runtime.rs
#	crates/lance-context-ingest/src/tests/annotation_runtime.rs
@beinan
beinan changed the base branch from codex/annotation-publisher-loop to main October 25, 2026 09:45
@beinan
beinan merged commit c28a4e6 into main Oct 25, 2026
16 of 30 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
)

## Summary
The ingestion binary can now run one annotation owner and multiple
forwarding ingresses for an already provisioned annotation generation.
Both roles use the existing authentication middleware and
deployment-authorized configuration; forwarding ingresses open neither
Lance nor a staging view.

The owner reuses the existing etcd claim identity and preserves
epoch-read-before-lease-validation ordering. It runs the committed
applier and publisher, exposes authenticated health, reports bounded
staging/source observations, and joins admitted work before releasing
its claim. Lease loss or a role failure ends the process. Startup does
not adopt an unbound table or retry uncertain mutations.

## Testing
- `cargo fmt --all`; feature Clippy with `-D warnings`; binary build.
- Annotation tests: 14 passed. The SIGKILL child role is run by its
passing parent test.
- Real application process tests: 2 passed, including two ingress
executables, owner exclusion, publication/GC, SIGKILL and natural lease
expiry, replacement, exact retry, field clearing, and lease-loss
shutdown.
- Existing etcd/worker tests: 4 passed using an independent local disk
directory for etcd.
- Local shared-disk stalls caused one 20-second lease-observation
timeout and one existing worker RPC timeout. Both failures were retained
and investigated. The correctness test now diagnoses the lease wait and
allows 60 seconds; production RPC timeouts were not changed. This is not
a failover-latency or throughput qualification.

Based on #580. 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