| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 21.73913% with 18 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## 4.20 #13019 +/- ##
=========================================
Coverage 16.26% 16.27%
- Complexity 13433 13439 +6
=========================================
Files 5665 5666 +1
Lines 500530 500557 +27
Branches 60787 60789 +2
=========================================
+ Hits 81411 81444 +33
+ Misses 410027 410009 -18
- Partials 9092 9104 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17484 |
Sorry, something went wrong.
There was a problem hiding this comment.
@abh1sar I do not think this change is the best way to go. First an upgrade patch for minor version should be implicit, expecially if no actual changes are in the specific upgrade script. Second, the create schema script should be for 4.0 and all other changes should be entered in the upgrade scripts.
Sorry, something went wrong.
|
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17506 |
Sorry, something went wrong.
There was a problem hiding this comment.
we will have to make sure this happens for 22.1 and 23.0 as well.
Sorry, something went wrong.
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-15897)
|
Sorry, something went wrong.
There was a problem hiding this comment.
Code looks good, needs upgrade testing
Sorry, something went wrong.
|
Tested the upgrade. It looks ok. 2026-06-11 15:13:56,404 DEBUG [c.c.u.d.Upgrade42030to42040] (main:[]) (logid:) Dropping index vm_instance_id from usage_vm_instance table if it exists 2026-06-11 15:13:56,501 DEBUG [c.c.u.d.DatabaseAccessObject] (main:[]) (logid:) Key vm_instance_id is dropped successfully from the table cloud_usage.usage_vm_instance |
Sorry, something went wrong.
|
This one needs to be included in the 4.22.2 and 4.23.0 upgrade paths as well. I intend to include it while performing the merge forward. |
Sorry, something went wrong.
… -> 4.23.0 path (apache#13617) (cherry picked from commit 75748a5)
| Back | FazBrowse Home | New Git URL |
Description
This PR fixes #12590
Fix is to remove the unique key constraint from the usage_vm_instance table.
The constraint is not required, and can cause issues with usage processing.
The other helper tables either don't have a constraint or duplicate events cannot happen as the event is generated only at create.
In case of VM instance the event is generated at every Start which makes it susceptible to duplicate events.
Added change in the upgrade path as well as in create-schema-premium.sql
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
To test, I added 2 VM.START events to the usage_event table with the same created time (id 18 and 20) and set the usage.stats.job.aggregation.range to 5 (minutes)

Without the fix the usage server was stuck processing that interval

After removing the unique constraint, usage server finished successfully and generated the correct usage.

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