Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

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.

@beinan
beinan marked this pull request as ready for review October 25, 2026 09:07
@beinan
beinan force-pushed the codex/annotation-application branch 2 times, most recently from fd71587 to c7f068b Compare October 25, 2026 10:49
@beinan
beinan changed the base branch from codex/annotation-application to main October 25, 2026 11:58
@beinan
beinan force-pushed the codex/annotation-owner-query branch from de924bd to 04e0ad5 Compare October 25, 2026 11:58
@beinan
beinan merged commit 6f78e60 into main Oct 25, 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