Code RoomQuota exceeded mid-upload
MediumPrep Room Coding #2972

Quota exceeded mid-upload

On-callStorage & CDNMid–Senior~30 min

Your multi-tenant document platform enforces a per-tenant storage quota. On-call is paged: one large enterprise tenant reports that ~4% of their document uploads over the last hour are 'succeeding' in the UI but then showing as corrupt or truncated when reopened. Dashboards: that tenant just crossed its provisioned quota ceiling around the time the issue started; the storage layer's `quota_exceeded` rejections climbed from 0 to a few hundred/min; upload-success metric is near-100% but document-integrity check failures spiked; multipart uploads show some parts written and a final part rejected. No node is out of physical disk — this is a logical quota, not disk-full. How do you triage and fix mid-write quota failures producing partial/corrupt objects?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 30 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.