Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

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.

@beinan
beinan marked this pull request as ready for review October 25, 2026 07:58
@beinan
beinan force-pushed the codex/annotation-application branch from 09cfd31 to fd71587 Compare October 25, 2026 10:48
@beinan
beinan changed the base branch from codex/annotation-owner-http to main October 25, 2026 10:48
@beinan
beinan force-pushed the codex/annotation-application branch from fd71587 to c7f068b Compare October 25, 2026 10:49
@beinan
beinan merged commit 989c693 into main Oct 25, 2026
19 of 20 checks passed
beinan added a commit that referenced this pull request Oct 25, 2026
## Summary
Concurrent annotation reads, updates, and publication could exhaust the
WAL control budget because every owner check fetched the full publisher
state. Only two full publisher responses fit in the default 4 MiB
budget; the sustained HTTP test reproduced a control-byte rejection
followed by unavailable reads or a stopped owner.

Add a compact `PublisherBinding` quorum query and use it for annotation
owner fencing. It carries the authority, table binding, and incarnation
within the existing 16 KiB reply allowance, preserving the before-work
and before-ACK checks. Publication continues to read its full state. No
mutation retry policy changes.

## Testing
- Feature Clippy with `-D warnings` and formatting.
- Seven WAL query tests passed, including current/successor authority
and maximum binding size.
- Runtime admission test passed: 16 compact owner reads fit the default
control budget; request-count limits still reject excess work.
- Fourteen annotation tests passed, including cross-ingress reads, epoch
fencing, source GC, and SIGKILL recovery.
- Explicit 60-second RF3/Lance HTTP pressure test passed: every
acknowledged update was read correctly, staging stayed within its
three-entry limit, and drained completely. Control-byte rejections
dropped to zero. This small fixture is a correctness/pressure test, not
production throughput qualification.

## Rollout
Upgrade WAL servers before annotation owners use the new query variant.
Existing RPC variants retain their encodings; persisted WAL/checkpoint
formats are unchanged.

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