Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTV-1929 Clean up unused active source connections. #1312

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

mrnold
Copy link
Contributor

@mrnold mrnold commented Jan 22, 2025

Fix for MTV-1929, cleans up most active source connections when they are done with their work.

@mrnold mrnold requested review from mnecas and yaacov as code owners January 22, 2025 14:54
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 15.44%. Comparing base (f1fe5d0) to head (02ae5f9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/migration.go 0.00% 12 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1312      +/-   ##
==========================================
- Coverage   15.45%   15.44%   -0.01%     
==========================================
  Files         112      112              
  Lines       23377    23389      +12     
==========================================
  Hits         3613     3613              
- Misses      19479    19491      +12     
  Partials      285      285              
Flag Coverage Δ
unittests 15.44% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@mrnold mrnold marked this pull request as draft January 22, 2025 15:25
@mrnold
Copy link
Contributor Author

mrnold commented Jan 22, 2025

This isn't as effective as I hoped, I still see a bunch of idle connections. Maybe I missed one somewhere.

Log out in migration instead of controller, much better results.

Signed-off-by: Matthew Arnold <[email protected]>
Copy link

@mrnold mrnold changed the title MTV-1929 Clean up some unused active source connections. MTV-1929 Clean up unused active source connections. Jan 22, 2025
@mrnold mrnold marked this pull request as ready for review January 22, 2025 17:20
@mrnold
Copy link
Contributor Author

mrnold commented Jan 22, 2025

This isn't as effective as I hoped, I still see a bunch of idle connections. Maybe I missed one somewhere.

I moved the logouts into migration.go and it works much better now. I don't see any lingering connections from the same client creation, just one from the collector that isn't quite as obvious to fix.

@mnecas mnecas merged commit 2b1bd9d into kubev2v:main Jan 23, 2025
14 of 16 checks passed
@mnecas mnecas added this to the 2.7.9 milestone Jan 23, 2025
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.

3 participants