Skip to content

fix(client): resume broken parallel get chunks from their offset - #423

Merged
joshfriend merged 2 commits into
mainfrom
jfriend/parallel-get-chunk-resume
Nov 4, 2026
Merged

joshfriend merged 2 commits into
mainfrom
jfriend/parallel-get-chunk-resume

Conversation

@joshfriend

Copy link
Copy Markdown
Contributor

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.

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.
@joshfriend
joshfriend marked this pull request as ready for review November 4, 2026 03:35
@joshfriend
joshfriend requested a review from a team as a code owner November 4, 2026 03:35
@joshfriend
joshfriend requested review from stuartwdouglas and removed request for a team November 4, 2026 03:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T03:44:51.608697Z 662c1ef New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread client/parallel_get.go Resolved
Comment thread client/parallel_get.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread client/parallel_get.go Resolved
@joshfriend
joshfriend merged commit 14f00e6 into main Nov 4, 2026
7 checks passed
@joshfriend
joshfriend deleted the jfriend/parallel-get-chunk-resume branch November 4, 2026 03:51
luispadron added a commit that referenced this pull request Nov 4, 2026
* 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
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.

2 participants