Conversation
beinan
marked this pull request as ready for review
October 25, 2026 05:52
beinan
added a commit
that referenced
this pull request
Oct 25, 2026
## Summary After annotation WAL payloads are retired, an exact retry must still return its original applied or rejected result. Freeze bounded latest rejection results with the same native Lance transaction as the annotation values, then restore that checkpoint and replay only its suffix. Installation preserves later active values and request outcomes. Result-only batches use a native metadata-only transaction with no new data files, allowing rejected requests to drain too. This integrates checkpoint recovery with the existing fenced publication adapter; automatic publisher scheduling and production owner routing remain follow-up work. Depends on #574. Refs #378. ## Testing - Core and ingest all-target Clippy with `service,http-client` passed. - 11 native annotation staging tests and 7 ingest annotation tests passed. - Real TLS/RF3/Lance cases cover concurrent suffix updates, selected-manifest reply loss, source payload retirement and reopen, exact accepted/rejected retries, and producer generation reuse. - Result-only publication writes zero data files and preserves fragment references; the maximum bounded rejection snapshot fits within the existing descriptor limit. - Formatting, diff checks, and the repository script’s Rust workspace Clippy and all-target tests passed. The script was stopped during its Python extension release build; local Python results are not claimed, and merge remains gated on the PR’s Python CI. Recovery fixtures use orderly shutdown/reopen. Process SIGKILL and sustained drain under mixed pressure are still required before enabling this path.
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
Add a single-shard annotation application path over the existing RF3 WAL. Successful mutation responses wait for ordered application and a retained request result. Point reads obtain a quorum barrier and wait for the background view, without scanning the WAL suffix in the read path. The Arrow contract supports label additions/removals and explicit Keep/Set/Clear operations for status and score.
The driver retains one decoded batch under pressure and a bounded latest outcome per producer slot. Missing turns reject the entire batch without blocking later records. Exact retries return the original result; changed or superseded requests cannot execute again. Upload and application workspaces are independent so waiting writers cannot occupy the memory needed to apply their own records.
This remains draft and disabled in the application registry. It recovers from the original Lance base plus retained WAL and refuses materialized/closed sources. Managed publication must persist request outcomes and handle result-only batches before source GC can be enabled; this PR does not complete the draining service or establish a throughput result.
Refs #378. Depends on #573 (stacked base).
Testing
service,http-client, Rust workspace Clippy and all-target tests passed. The local repository script was stopped during the Python release build; this is not a full local-script pass. Python CI passed.