Add initializeBucketCapacity to seed empty-bucket metrics (8.4 backport) - #2680
Conversation
Add a MongoClientInterface method that idempotently inserts a zero-value bucket capacity document into __infostore when none exists (upsert with $setOnInsert, so an existing count-items document with real values is never overwritten). Exposed through MetadataWrapper (no-op for non-mongodb backends). This lets CloudServer seed a metric document at bucket creation (or when a quota is enabled on an empty bucket) so bucket quota checks are served before the periodic count-items job runs. Issue: ARSN-610 (cherry picked from commit a03b468)
Hello delthas,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development/8.4 #2680 +/- ##
================================================
Coverage 74.38% 74.39%
================================================
Files 229 229
Lines 18519 18535 +16
Branches 3804 3807 +3
================================================
+ Hits 13776 13789 +13
- Misses 4738 4741 +3
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
This pull request did not target the following hotfix branch(es) so they
Please check the status of the associated issue ARSN-610. Goodbye delthas. The following options are set: approve |
|
/release |
|
Release summary:
|
Backport of ARSN-610 to
development/8.4, cherry-picked fromdevelopment/8.5(PR #2666) with byte-identical patches (prettier pre-commit + fix; only hunk offsets differ due to unrelated divergence) —git merge-treeshows zero conflicts merging towarddevelopment/8.5, so the GitWaterFlow cascade auto-resolves on everything except the usual package.json version line.Adds the public
MongoClientInterface.initializeBucketCapacitymethod (exposed viaMetadataWrapper) that idempotently inserts a zero-value bucket metric document in__infostore($setOnInsertupsert, never overwrites a real count-items document).Motivation for the backport: enable cherry-picking CLDSRV-949 (seed quota/capacity metrics at bucket creation) onto cloudserver
development/9.3, which pins arsenal 8.4.x — part of the RD-2109 / ARTESCA-17063 fix chain.Also bumps package.json to 8.4.22 — expect the usual cascade conflict on the version line at 8.5.
Issue: ARSN-610