extra null guard#10264
extra null guard#10264DaanHoogland merged 1 commit intoapache:4.19apache/cloudstack:4.19from shapeblue:ghi10154-nullGuardOnReconnectHostshapeblue/cloudstack:ghi10154-nullGuardOnReconnectHostCopy head branch name to clipboard
Conversation
|
@blueorangutan package |
|
@DaanHoogland 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10264 +/- ##
=========================================
Coverage 15.14% 15.14%
Complexity 11283 11283
=========================================
Files 5408 5408
Lines 473823 473823
Branches 57824 57826 +2
=========================================
Hits 71764 71764
Misses 394037 394037
Partials 8022 8022
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 12200 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12184)
|
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
| } catch (final HypervisorVersionChangedException hvce) { | ||
| handleDisconnectWithoutInvestigation(attache, Event.ShutdownRequested, true, true); | ||
| throw new CloudRuntimeException("Unable to connect " + attache.getId(), hvce); | ||
| throw new CloudRuntimeException("Unable to connect " + (attache == null ? "<unknown agent>" : attache.getId()), hvce); |
There was a problem hiding this comment.
Maybe use ObjectUtils.defaultIfNull instead of ternary operators?
There was a problem hiding this comment.
I would not mind , but don't see that this improves robustness or readability @hsato03 . What is your intention/sugestion?
There was a problem hiding this comment.
@DaanHoogland the intention was to improve readability, but after reading the code again I realized that the method would not be useful in this situation. Please ignore my suggestion 😅
|
[SF] Trillian test result (tid-12190)
|
* 4.19: extra null guard (#10264)
Description
This PR adds an extra null guard in notify monitors
see the discussion in #10158 (comment)
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?