Shutdown expunged resources cleanup executor properly, and allow other components to configure/start/stop on error - #9723
Conversation
…n config expunged.resources.purge.enabled is true), and added some logs in component lifecycle classes
|
@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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9723 +/- ##
============================================
- Coverage 15.77% 4.48% -11.30%
============================================
Files 5621 392 -5229
Lines 491564 32154 -459410
Branches 61174 5672 -55502
============================================
- Hits 77562 1441 -76121
+ Misses 405545 30707 -374838
+ Partials 8457 6 -8451
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11181 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@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 11182 |
|
@sureshanaparti , this looks like a good cleanup. I wonder what it fixes other than just the looks of the code, though. We have two shutdown issues:
|
@DaanHoogland this updates MS status to Down when service is stopped/shutdown. (it doesn't address prolonged time of shutdown) |
|
[SF] Trillian test result (tid-11539)
|
JoaoJandre
left a comment
There was a problem hiding this comment.
CLGTM, did not test it
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-11551)
|
|
[SF] Trillian test result (tid-11554)
|
|
@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 11214 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
Tested. Both the status update and the prolonged shutdown time have been fixed by this. |
|
[SF] Trillian test result (tid-11558)
|
|
cc @JoaoJandre - this has been tested, should we merge this? |
…r components to configure/start/stop on error (apache#9723)
Description
This PR shutdowns expunged resources cleanup executor when obj is available (when config expunged.resources.purge.enabled is true), allows other components to configure/start/stop on error, and adds some logs in component lifecycle classes.
Noticed this exception with custom logs, the remaining components fails to stop after this exception.
Fixes #9722
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Mgmt2 service stopped =>
How Has This Been Tested?
Manually tested management server start & stop.
stopping-beans-check.txt
How did you try to break this feature and the system with this change?