Conversation
This was referenced Oct 25, 2026
beinan
marked this pull request as ready for review
October 25, 2026 07:58
beinan
force-pushed
the
codex/annotation-application
branch
from
October 25, 2026 10:48
09cfd31 to
fd71587
Compare
beinan
force-pushed
the
codex/annotation-application
branch
from
October 25, 2026 10:49
fd71587 to
c7f068b
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Based on #580. Refs #378.