Skip to content

getEventUuid() helper returns null for a missing event - #14924

Open
DaanHoogland wants to merge 1 commit into
4.20from
drs-plan-purged-event-npe
Open

DaanHoogland wants to merge 1 commit into
4.20from
drs-plan-purged-event-npe

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

DRS plans and their events are purged independently (drs.plan.expire.interval and event.purge.delay), so a plan can outlive its event. listClusterDrsPlan and plan generation then fail with an NPE, and the DRS tab is blank. A new getEventUuid() helper returns null for a missing event and is used in all three places. Users can recover without a DB cleanup.

Reported in #13457; introduced by #7723 (DRS feature)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@DaanHoogland DaanHoogland added this to the 4.20.4 milestone Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.46%. Comparing base (9a4aac2) to head (cf2e4a8).

Files with missing lines Patch % Lines
...ache/cloudstack/cluster/ClusterDrsServiceImpl.java 66.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #14924   +/-   ##
=========================================
  Coverage     16.46%   16.46%           
- Complexity    13711    13716    +5     
=========================================
  Files          5669     5669           
  Lines        501736   501733    -3     
  Branches      60961    60960    -1     
=========================================
+ Hits          82596    82607   +11     
+ Misses       409884   409872   -12     
+ Partials       9256     9254    -2     
Flag Coverage Δ
uitests 4.16% <ø> (ø)
unittests 17.33% <66.66%> (+<0.01%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant