Shutdown MS maintenance jobs when finished#11330
Conversation
|
@blueorangutan package |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a resource leak issue by properly shutting down MS maintenance jobs when they are finished. The main purpose is to ensure that scheduled executor services are properly terminated to prevent memory leaks.
- Added
cancelWaitForPendingJobs()calls in error scenarios where the management server cannot be found - Properly shutdown the scheduled executor service after scheduling migration tasks
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ManagementServerMaintenanceManagerImpl.java | Added cleanup calls to cancel pending jobs when management server lookup fails |
| Agent.java | Fixed executor service resource leak by properly shutting down the migration agent connection service |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11330 +/- ##
============================================
+ Coverage 16.76% 17.16% +0.40%
- Complexity 14281 14982 +701
============================================
Files 5767 5869 +102
Lines 512657 521595 +8938
Branches 62359 63485 +1126
============================================
+ Hits 85941 89552 +3611
- Misses 417118 421977 +4859
- Partials 9598 10066 +468
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14441 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13964)
|
Description
This PR shutdowns MS maintenance jobs when finished.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?