Skip to content

Navigation Menu

Sign in
Sign up

SNOW-3556240: Properly finalize ThreadPoolExecutors in file transfer agent - #2994

Merged
sfc-gh-turbaszek merged 2 commits into
main from
turbaszek-SNOW-3556240-finalize-thread-pools
Aug 6, 2026
Merged

SNOW-3556240: Properly finalize ThreadPoolExecutors in file transfer agent #2994
sfc-gh-turbaszek merged 2 commits into
main from
turbaszek-SNOW-3556240-finalize-thread-pools

Conversation

@sfc-gh-turbaszek

@sfc-gh-turbaszek sfc-gh-turbaszek commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • CI green on this branch (integration tests need PARAMETERS_SECRET)
  • Confirm no leftover ThreadPoolExecutor-* threads after PUT without forcing gc.collect()

Made with Cursor

...agent
Duplicate of #2879 by @jochenott. Shut down ThreadPoolExecutors via
ExitStack instead of relying on GC finalizers. Fixes #2878.

@snowflake-security-bot snowflake-security-bot 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.

Snowflake Security Review

Security grade: A — Passed

This PR was classified as LOW risk by the automated pre-screen.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.09%. Comparing base (18a22b2) to head (50f9433).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/snowflake/connector/file_transfer_agent.py 89.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## main #2994 +/- ##
==========================================
+ Coverage 65.08% 65.09% +0.01% 
==========================================
 Files 123 123 
 Lines 17433 17436 +3 
 Branches 2392 2392 
==========================================
+ Hits 11346 11350 +4 
 Misses 5646 5646 
+ Partials 441 440 -1 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sfc-gh-turbaszek merged commit 48d9279 into main Aug 6, 2026
51 of 55 checks passed
sfc-gh-turbaszek deleted the turbaszek-SNOW-3556240-finalize-thread-pools branch August 6, 2026 13:13
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@snowflake-security-bot snowflake-security-bot[bot] snowflake-security-bot[bot] left review comments
@sfc-gh-pczajka sfc-gh-pczajka sfc-gh-pczajka approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

SNOW-3556240: FileTransferManager leaks threads

AltStyle によって変換されたページ (->オリジナル) /