Repository navigation
Conversation
…n one pass par-rs 2524277..985b373: #146 whole-file MD5 off the critical path, #147 a mid-download slot add also allocates spare slots in the same back-fill pass (on all cores), a slice not on disk yet leaves the back-fill pending (needs_backfill) instead of returning Err, CountedFile reads with pread. The back-fill thread now counts a pass done only when nothing is left pending, so the retry delay stays in force while slices wait for the cache. Tests: an article taken as written before its write lands is never damaged (the staged check after the flush verifies it); an unplanned volume mid- download costs one back-fill pass and later volumes land in spares. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM
…e spare-slot test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM
This branch has not been deployed
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.
What
Bumps zipfast to main 01dadb54 (#314 DeclaredBad holes, #315 1 TiB byte-total defaults, #312 RAR5 -m3 speed, #310 damaged-input salvage, #307, #308). Direct unpack also stops re-extracting a set after a bad part.
prybar's 4 GiB live-path audit found 1.3-3.9 GB of re-reads. They came from a corrupt article whose yEnc CRC was valid. A stored part failed its own check and the persistent session ended (fixed in zipfast #314). RustyGet then dropped the partial state and extracted again from volume 1, and post-processing extracted everything a third time.
progressive_unpack/persistent.rshold_declared): the volume was handed out whole, so it is now held as damaged through the newVolumeFeed::declare_damaged. That also works after the download ended: post-processing repairs first, then resumes. The hole is refilled only from the repaired file.Verdict::PartBad/Badon plain members):PartialFile::declare_holeon the volume(s), wait for the repair,refill_from_packed(reads only the holes), then verify once more. This replacesStep::Fallback+remove_state_root+ full re-extraction. A second failure fails the job as damaged. Encrypted members keep the old fallback, because a keyed check failure may be a wrong password.parchecker.rs): slices that turn Damaged on an article that arrived whole are recorded. Direct unpack takes them once their file is complete and the damage has lasted 10 s. It declares them holes of the session (session.declare_hole, data only, placed withplace_holes), so zipfast never reads them and the refill reads only the slice.postproc.rs):prepost.rs): health 100% is not proof.record_damaged)..rustyget-partial, so it no longer reads the extracted partial outputs again. With direct unpack succeeding, post-processing does not unpack again; the scenarios below assert this.RarSession, and progressive/persistent sessions refuse damaged headers whatever the option says (zipfast refactor(rpc): port XmlCommand append/feed/testserver parameter parsing to Rust (batch 187) #310 docs). Revisit when zipfast adds it to the progressive sessions.Not done here (follow-up): par still reads the
.rustyget-deadvol-*.datastand-in. It may need those bytes to repair a dead volume, so excluding it needs its own check.Tests
progressive_unpack/tests.rs):postproc.rs): a declared hold until the resume, not after.corruptpartdu(RAR4 stored) andcorruptpartdurar5(RAR5 stored). Each is an 8 x 1 MB set with one wrong byte in volume 4, posted with valid yEnc CRCs and par2 with 20 recovery blocks. Each asserts:RESULTS_PLACEHOLDER
🤖 Generated with Claude Code
https://claude.ai/code/session_01LG44gYUGuwLMB2hw7HQGbM