Repository navigation
Stream native file downloads consistently during overwrites - #14615
Conversation
|
Review complete. No issues found. The change reworks both file-serving endpoints to stream via one backend read instead of repeatedly reading fixed-size windows, tracking streamed bytes against the recorded
Reviewed commit: cebe2f9 |
🟢 Tier S · Ready to merge
Large native Latest changes: The newest commits set
📂 Walkthrough · 4
Reviewed the commits since |
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Large native
/viewand/downloadresponses reopen the backend object for every 10 MiB chunk. That adds a buffered backend read per chunk and can truncate a response when an S3 overwrite commits a new path and deletes the old one during delivery.Use the existing storage device streaming interface for large, untransformed responses. One backend GET pins the representation for the transfer. Validate the captured length and abort the HTTP response if delivery fails after bytes have escaped, rather than appending an error document to a successful response. Small, encrypted, compressed, and range response paths retain their existing behavior.
Validation:
s3group so it also exercises the MinIO-backed storage lane. This E2E has not yet been run locally; CI verification is required.The candidate is isolated to GET requests for two temporary benchmark buckets behind an explicit diagnostic header. General production traffic is unchanged. Deployment must wait for required review and CI; no admin bypass.
Refs appwrite-labs/cloud#6624