Skip to content

Release finished CRT transfers instead of keeping them until shutdown - #10888

Merged
hssyoo merged 1 commit into
v2from
fix-crt-future-coordinators-leak
Nov 12, 2026
Merged

hssyoo merged 1 commit into
v2from
fix-crt-future-coordinators-leak

Conversation

@hssyoo

@hssyoo hssyoo commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10880

Recursive CRT transfers create a coordinator object for each file and appends to a list without ever getting cleaned up, even after the transfer completes (success or failure). This causes a memory leak that grows with each file transferred.

This PR fixes the leak by removing the coordinator upon completion and the CRT request, which holds a reference to its coordinator.

@hssyoo
hssyoo marked this pull request as ready for review November 12, 2026 15:44
@hssyoo
hssyoo requested a review from a team as a code owner November 12, 2026 15:44

@luigi617 luigi617 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hssyoo
hssyoo merged commit 319b458 into v2 Nov 12, 2026
129 of 131 checks passed
@hssyoo
hssyoo deleted the fix-crt-future-coordinators-leak branch November 12, 2026 17:57
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.

AWS S3 CRT Transfer Manager uses an ever-increasing amount of memory based on the number of objects to sync

2 participants