Repository navigation
AVA1 1.0.11: read-back of a resumed file while it arrives - #18
Merged
Merged
Conversation
A large file resumed from the journal had what it held durable from before read back only after its last byte, while the sender had nothing left to send. When the job's map is answered, those ranges are now handed to the live read-back (ava1_apply_readback_resumed), so they are read while the rest of the file arrives. A range already read back, queued or being read is not handed over again; nothing is reported to the sender, so durable byte counts are unchanged. A mismatch is acted on at the commit as any live one: the file is sent again. The Rust sender polls its cancel flag while the up-front space check runs, so a cancel no longer waits for a slow check. New tests: - a_resumed_file_is_read_back_while_the_rest_arrives - a_byte_changed_before_the_interruption_is_found_while_the_resumed_file_arrives - a_cancel_during_a_slow_space_check_ends_the_job_at_once Version 1.0.11, changelog, SPEC.md §13.5. Wire format unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
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.
A large file resumed from the journal had what it held durable from before read back only after its last byte, while the sender had nothing left to send. On a big file that was minutes of finishing after the upload looked done.
New tests (each fails without its fix):
a_resumed_file_is_read_back_while_the_rest_arrives: 20 MiB durable before the stop, 41 MiB file. Before: only the 10 MiB sent after the resume was read live. After: all 40 MiB read live before the last stretch, 0 MiB after the last byte.a_byte_changed_before_the_interruption_is_found_while_the_resumed_file_arrivesa_cancel_during_a_slow_space_check_ends_the_job_at_oncemake checkpasses locally (802 tests).🤖 Generated with Claude Code
https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT