Repository navigation
fix(client): resume broken parallel get chunks from their offset - #423
Conversation
A proxy cutting one ranged response, or a transient 5xx, used to fail the whole parallel download. Chunks are pinned to the discovery ETag, so a fresh request for the remaining bytes is safe.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3dd4a3a33
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 662c1efaa6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
* origin/main: fix(client): resume broken parallel get chunks from their offset (#423) fix(git): limit size of request bodies buffered in memory (#422) fix: don't truncate downloads when the cache write fails (#420) fix(security): reject path traversal in proxied request paths (#418) fix: security/sanitize cached git mirrors (#417) fix(security): harden server-side LFS snapshots (#416) # Conflicts: # internal/strategy/git/snapshot.go
ParallelGet used to fail the whole download when a single ranged response broke mid-body or came back as a transient 5xx, which happens whenever a proxy in the path drains or restarts. Blox workstations hit this on roughly 9% of staging snapshot restores and fall back to a slower sequential download or a full git clone.
A broken chunk now resumes from the offset it reached, pinned to the discovery ETag with If-Match, so a rewritten object still fails as before. Transport errors and 5xx responses on chunk and discovery requests are retried too, up to three times per chunk with a short backoff. Client errors, 412s, and destination write failures are not retried.