Skip to content

stability: multipart fetch pool - #12205

Merged
fuweid merged 1 commit into
containerd:mainfrom
azr:multipart-fetch-stability
Jan 23, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
azr:multipart-fetch-stability

Conversation

@azr

@azr azr commented Aug 14, 2025 •

Copy link
Copy Markdown
Contributor

this:

  • makes sure we reset a pooled buffer when releasing it while multipart fetch is on
  • fixes a potential goroutine leak when we cancel a request
  • closes the chunk writer if we couldn't acquire a lock <- this could potentially lock if a reader was trying to read, I think

@k8s-ci-robot

Copy link
Copy Markdown

Hi @azr. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@dosubot dosubot Bot added area/distribution Image Distribution kind/bug labels Aug 14, 2025
@azr
azr force-pushed the multipart-fetch-stability branch from 50ee2e3 to bdcc07a Compare August 14, 2025 12:41
@azr azr changed the title multipart fetch stability fixes fix: multipart fetch pool Aug 20, 2025
@azr
azr force-pushed the multipart-fetch-stability branch from bdcc07a to 1f31369 Compare August 20, 2025 09:01
@azr
azr marked this pull request as draft August 22, 2025 06:44
@azr
azr marked this pull request as ready for review August 26, 2025 15:13
Comment thread core/remotes/docker/fetcher.go Resolved
Comment thread core/remotes/docker/fetcher.go Resolved
@azr
azr force-pushed the multipart-fetch-stability branch 2 times, most recently from ae2a666 to 36d4544 Compare August 29, 2025 15:26
Comment thread core/remotes/docker/fetcher.go Resolved
Comment thread core/remotes/docker/fetcher.go Resolved
Comment thread core/remotes/docker/fetcher.go Resolved
@azr
azr force-pushed the multipart-fetch-stability branch 2 times, most recently from 15c25cf to 04ffc4b Compare September 4, 2025 06:50
@k8s-ci-robot k8s-ci-robot added size/M and removed size/S labels Sep 4, 2025
@azr
azr force-pushed the multipart-fetch-stability branch 3 times, most recently from 227b04e to a4ab73e Compare September 8, 2025 13:29
@azr azr changed the title fix: multipart fetch pool stability: multipart fetch pool Sep 15, 2025
@azr
azr requested review from djdongjin and fuweid September 15, 2025 08:00
Comment thread core/remotes/docker/fetcher.go Resolved
@azr
azr requested a review from fuweid September 24, 2025 13:51
@azr
azr force-pushed the multipart-fetch-stability branch from 706ab62 to 340ae3b Compare November 27, 2025 07:52
@azr
azr force-pushed the multipart-fetch-stability branch 3 times, most recently from 15bca23 to 4024987 Compare December 11, 2025 11:15
@azr

azr commented Dec 11, 2025

Copy link
Copy Markdown
Contributor Author

@hsiangkao @henry118 @djdongjin @fuweid can I get another review round on this?🙏

Updated — switched to errgroup, added context-aware copy, fixed buffer pool reset.

@henry118 henry118 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jan 6, 2026
@azr
azr force-pushed the multipart-fetch-stability branch from bea67d2 to e69a33a Compare January 21, 2026 21:07
Comment thread core/remotes/docker/fetcher.go Resolved
Signed-off-by: Adrien Delorme <[email protected]>
@azr
azr force-pushed the multipart-fetch-stability branch from e69a33a to e86523e Compare January 23, 2026 08:45
@fuweid
fuweid added this pull request to the merge queue Jan 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 23, 2026
@fuweid
fuweid added this pull request to the merge queue Jan 23, 2026
Merged via the queue into containerd:main with commit ece659c Jan 23, 2026
90 of 92 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jan 23, 2026
@fuweid fuweid added cherry-pick/2.1.x Change to be cherry picked to release/2.1 branch cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch labels Jan 23, 2026
@azr
azr deleted the multipart-fetch-stability branch January 23, 2026 19:15
@samuelkarp

Copy link
Copy Markdown
Member

/cherry-pick release/2.2

@samuelkarp samuelkarp removed the cherry-pick/2.1.x Change to be cherry picked to release/2.1 branch label Oct 9, 2026
@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@samuelkarp: #12205 failed to apply on top of branch "release/2.2":

Applying: multipart fetch stability fixes
Using index info to reconstruct a base tree...
M	core/remotes/docker/fetcher.go
M	core/remotes/docker/fetcher_test.go
Falling back to patching base and 3-way merge...
Auto-merging core/remotes/docker/fetcher.go
Auto-merging core/remotes/docker/fetcher_test.go
CONFLICT (content): Merge conflict in core/remotes/docker/fetcher_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 multipart fetch stability fixes

Details

In response to this:

/cherry-pick release/2.2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distribution Image Distribution cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch kind/bug needs-ok-to-test size/L

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

8 participants