You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeBucketQuotastruct {
Quotauint64`json:"quota"`// Deprecated Aug 2023Sizeuint64`json:"size"`// Indicates maximum size allowed per bucketRateuint64`json:"rate"`// Indicates bandwidth rate allocated per bucketRequestsuint64`json:"requests"`// Indicates number of requests allocated per bucketTypeQuotaType`json:"quotatype,omitempty"`
}
Independent review, 2026-09-06: #132 at 0db4bf3b00185fcc053a6ae30a2bbbe69ae8317c addresses the root cause with a small shared selector: hard-quota enforcement, v2/v3 metrics and Veeam now use Size first and legacy Quota as fallback; site-replication comparison uses the same effective hard-quota value. API names, labels and storage representation remain unchanged.
The quota and site-replication comparison tests pass in an isolated checkout containing current main e7d0e62f1 plus #132 (also integrated with the other reviewed PRs). No blocking functional finding in this change. Keep #106 open until #132 is merged; this verification does not mean the fix is present in main or a released image.
Resolved by #132 (thanks @mrjavadseydi) — merged to main as ad873c735.
The bucket-quota metrics in metrics-v2.go (getBucketUsageMetrics) and metrics-v3-cluster-usage.go read the deprecated madmin.BucketQuota.Quota field, so a quota set via the current API (Size>0, Quota==0 — the shape the Console and mc write) emitted no quota metric at all. A new getBucketQuotaSize helper (prefer Size, fall back to the deprecated Quota, require HardQuota type) is now used at both metric sites, so the effective enforced quota is reported. The same helper replaces the equivalent inline logic in enforceQuotaHard and the veeam SOS API (pure refactor), and isBktQuotaCfgReplicated now compares effective sizes — a bonus fix for two latent site-replication mis-verdicts (false drift on equivalent Size/Quota representations; false match on typeless differing sizes).
Verified: rebased cleanly onto current main and independently adversarially reviewed — build, vet, gofmt, rebrand-guard, and TestGetBucketQuotaSize/TestIsBktQuotaCfgReplicated all green. The HardQuota-type gate drops no legitimate quota, since HardQuota is the only type madmin's QuotaType.IsValid accepts.
Activity
Vonng commentedon Sep 6, 2026
Independent review, 2026-09-06: #132 at
0db4bf3b00185fcc053a6ae30a2bbbe69ae8317caddresses the root cause with a small shared selector: hard-quota enforcement, v2/v3 metrics and Veeam now useSizefirst and legacyQuotaas fallback; site-replication comparison uses the same effective hard-quota value. API names, labels and storage representation remain unchanged.The quota and site-replication comparison tests pass in an isolated checkout containing current main
e7d0e62f1plus #132 (also integrated with the other reviewed PRs). No blocking functional finding in this change. Keep #106 open until #132 is merged; this verification does not mean the fix is present in main or a released image.Vonng commentedon Sep 7, 2026
Resolved by #132 (thanks @mrjavadseydi) — merged to
mainasad873c735.The bucket-quota metrics in
metrics-v2.go(getBucketUsageMetrics) andmetrics-v3-cluster-usage.goread the deprecatedmadmin.BucketQuota.Quotafield, so a quota set via the current API (Size>0, Quota==0— the shape the Console andmcwrite) emitted no quota metric at all. A newgetBucketQuotaSizehelper (preferSize, fall back to the deprecatedQuota, requireHardQuotatype) is now used at both metric sites, so the effective enforced quota is reported. The same helper replaces the equivalent inline logic inenforceQuotaHardand the veeam SOS API (pure refactor), andisBktQuotaCfgReplicatednow compares effective sizes — a bonus fix for two latent site-replication mis-verdicts (false drift on equivalent Size/Quota representations; false match on typeless differing sizes).Verified: rebased cleanly onto current
mainand independently adversarially reviewed — build, vet, gofmt, rebrand-guard, andTestGetBucketQuotaSize/TestIsBktQuotaCfgReplicatedall green. TheHardQuota-type gate drops no legitimate quota, sinceHardQuotais the only typemadmin'sQuotaType.IsValidaccepts.