René's URL Explorer Experiment


Title: Apache CloudStack Usage Server repeatedly reprocesses historical usage from fixed start date and creates duplicate cloud_usage records · Issue #13112 · apache/cloudstack · GitHub

Open Graph Title: Apache CloudStack Usage Server repeatedly reprocesses historical usage from fixed start date and creates duplicate cloud_usage records · Issue #13112 · apache/cloudstack

X Title: Apache CloudStack Usage Server repeatedly reprocesses historical usage from fixed start date and creates duplicate cloud_usage records · Issue #13112 · apache/cloudstack

Description: problem We identified a persistent duplication issue in the Apache CloudStack Usage Server related to usage_type=13 (Network Offering usage). The Usage Server continuously reprocesses historical usage records starting from 2026-01-13 00:...

Open Graph Description: problem We identified a persistent duplication issue in the Apache CloudStack Usage Server related to usage_type=13 (Network Offering usage). The Usage Server continuously reprocesses historical us...

X Description: problem We identified a persistent duplication issue in the Apache CloudStack Usage Server related to usage_type=13 (Network Offering usage). The Usage Server continuously reprocesses historical us...

Opengraph URL: https://github.com/apache/cloudstack/issues/13112

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apache CloudStack Usage Server repeatedly reprocesses historical usage from fixed start date and creates duplicate cloud_usage records","articleBody":"### problem\n\nWe identified a persistent duplication issue in the Apache CloudStack Usage Server related to usage_type=13 (Network Offering usage).\n\nThe Usage Server continuously reprocesses historical usage records starting from 2026-01-13 00:00:37, generating duplicate entries in the cloud_usage table every day.\n\nThe issue appears to affect Network Offering usage accounting specifically (usage_type=13).\n\nObserved behavior:\n\nDuplicate cloud_usage rows are inserted repeatedly for the same:\nvm_instance_id\noffering_id\nusage_type\nstart_date\nend_date\nraw_usage\nThe duplicate count increases daily.\nExample:\nrecords for 2026-01-14 currently have 112 duplicates\nrecords for 2026-01-15 currently have 111 duplicates\nrecords for 2026-01-16 currently have 110 duplicates\n\nThe pattern strongly suggests that the Usage Server is reprocessing the entire historical usage window every day instead of advancing the aggregation checkpoint.\n\nExample duplicate query:\n\nSELECT\n  vm_instance_id,\n  offering_id,\n  usage_type,\n  start_date,\n  end_date,\n  raw_usage,\n  COUNT(*) AS duplicates\nFROM cloud_usage\nWHERE usage_type = 13\nGROUP BY\n  vm_instance_id,\n  offering_id,\n  usage_type,\n  start_date,\n  end_date,\n  raw_usage\nHAVING COUNT(*) \u003e 1\nORDER BY duplicates DESC;\n\nExample result:\n\nvm_instance_id = 456\noffering_id    = 39\nusage_type     = 13\nstart_date     = 2026-01-14 00:00:00\nend_date       = 2026-01-14 23:59:59\nraw_usage      = 24\nduplicates     = 112\n\nWe also observed repeated failed usage_job entries with invalid processing windows:\n\nstart_date = 2026-05-06 00:00:00\nend_date   = 2026-05-05 23:59:59\nsuccess    = 0\n\nAt the same time, successful jobs continuously reprocess the same historical range:\n\nstart_date = 2026-01-13 00:00:37\nend_date   = 2026-05-05 23:59:59\n\nThis causes:\n\ncontinuous duplicate billing records\ninflated usage data\nincorrect accounting\ncorrupted billing exports/reports\n\n### versions\n\nApache CloudStack Version:\nApache CloudStack 4.21.0.0\nDatabase:  10.6.22-MariaDB-0\nServer: ubuntu0.22.04.1-log Ubuntu 22.04\n\n### The steps to reproduce the bug\n\n1. Enable Usage Server in Apache CloudStack.\n2. Allow the Usage aggregation jobs to run normally for several days/weeks.\n3. Observe the usage_job table.\n4. Observe that successful jobs repeatedly start from the same historical date instead of advancing incrementally.\n5. Observe duplicate rows being inserted repeatedly into cloud_usage.\n6. Run:\nSELECT\n  vm_instance_id,\n  offering_id,\n  usage_type,\n  start_date,\n  end_date,\n  raw_usage,\n  COUNT(*) AS duplicates\nFROM cloud_usage\nWHERE usage_type = 13\nGROUP BY\n  vm_instance_id,\n  offering_id,\n  usage_type,\n  start_date,\n  end_date,\n  raw_usage\nHAVING COUNT(*) \u003e 1;\nObserve that duplicate counts increase daily.\n\n### What to do about it?\n\nPotential areas to investigate:\n\nUsage Server aggregation checkpoint handling\nUsage job state persistence\nReprocessing logic for historical aggregation windows\nNetwork Offering usage aggregation (usage_type=13)\nFailed usage_job recovery logic\nValidation for invalid aggregation windows where:\nstart_date \u003e end_date\nDeduplication protections before inserting into cloud_usage","author":{"url":"https://github.com/DaniloMurbach","@type":"Person","name":"DaniloMurbach"},"datePublished":"2026-05-06T23:20:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/13112/cloudstack/issues/13112"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:23411c04-9323-f357-a0b6-791cc797f815
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB29A:2279D0:5A2879:7BF73F:6A4DCCAA
html-safe-nonce16a11eeacef73f2852763f1038dae16fd66e1cafb7faed2ea5a8449f8907ca5a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjlBOjIyNzlEMDo1QTI4Nzk6N0JGNzNGOjZBNERDQ0FBIiwidmlzaXRvcl9pZCI6IjYzMDQ0NTExMTI1MzIyOTg5MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac82a29ce6cf25f73f4b70fb29442e6dda6f230b4bfadea5bfff98e11aa7fa6f2b
hovercard-subject-tagissue:4395058975
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/13112/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6dd6544794e9c51d008f00590e1948407117ebf2b98c4bdd01d37c17d051e04a/apache/cloudstack/issues/13112
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6dd6544794e9c51d008f00590e1948407117ebf2b98c4bdd01d37c17d051e04a/apache/cloudstack/issues/13112
og:image:altproblem We identified a persistent duplication issue in the Apache CloudStack Usage Server related to usage_type=13 (Network Offering usage). The Usage Server continuously reprocesses historical us...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDaniloMurbach
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/13112#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F13112
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F13112
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/13112
Reloadhttps://github.com/apache/cloudstack/issues/13112
Reloadhttps://github.com/apache/cloudstack/issues/13112
Please reload this pagehttps://github.com/apache/cloudstack/issues/13112
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 268 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Apache CloudStack Usage Server repeatedly reprocesses historical usage from fixed start date and creates duplicate cloud_usage recordshttps://github.com/apache/cloudstack/issues/13112#top
4.20.4https://github.com/apache/cloudstack/milestone/45
https://github.com/DaniloMurbach
DaniloMurbachhttps://github.com/DaniloMurbach
on May 6, 2026https://github.com/apache/cloudstack/issues/13112#issue-4395058975
Apache CloudStack BugFest - Issueshttps://github.com/orgs/apache/projects/362
4.20.4No due datehttps://github.com/apache/cloudstack/milestone/45
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.