Skip to content

fix(k8s): stop Envoy's 15s route timeout from truncating object streams - #9175

Open
aicam wants to merge 1 commit into
apache:mainfrom
aicam:fix/gateway-stream-timeout
Open

aicam wants to merge 1 commit into
apache:mainfrom
aicam:fix/gateway-stream-timeout

Conversation

@aicam

@aicam aicam commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Envoy Gateway gives every HTTPRoute rule that has no timeouts block a 15s request timeout, which covers the whole response including the body. The file-service rule (version zips, uploads) and the RustFS route (presigned downloads) stream for as long as the transfer takes. So large downloads were cut off after the 200 was sent, and the browser saved a truncated file.

This PR sets timeouts.request: "24h" on those two rules. Other routes keep the 15s default, and Envoy's stream idle timeout still closes stalled transfers.

Any related issues, documentation, discussions?

Fixes #8445

How was this PR tested?

  • helm template renders request: "24h" on both rules. Existing timeouts (10m, 3m) are unchanged.
  • The same timeout was applied to a production deployment. A 166 MB file throttled to 4 MB/s now downloads completely in 39.5s; before, Envoy cut it at 15s.
  • Tested on a production deployment with 2GB and 3min download

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 5.5

🤖 Generated with Claude Code

Envoy Gateway gives every HTTPRoute rule without a timeouts block a 15s
request timeout. The file-service rule (version zips, uploads) and the
RustFS route (presigned downloads) stream for as long as the object
takes, so large transfers were cut off after the 200 was sent and the
browser saved a truncated file. Cap both at 24h instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Yicong-Huang Yicong-Huang added the release/v1.3 back porting to release/v1.3 label Oct 27, 2026
@github-actions
github-actions Bot requested a review from mengw15 October 27, 2026 20:28
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required Backport Approvals check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.

Release branch Analysis
✅ release/v1.3 Already labeled — this fix is queued to backport here. @mengw15 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other.
⚠️ release/v1.2 Not labeled automatically — none of the files this PR modifies exist on this branch (bin/k8s/templates/base/gateway/gateway-routes.yaml). The fix may target code that isn't on this release, or the files were moved/renamed after the branch was cut. Please check and add release/v1.2 by hand if this fix should be backported here — its release manager then has to approve before this PR can merge.

Auto-label run.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @kz930
    You can notify them by mentioning @kz930 in a comment.

@aicam
aicam requested a review from parshimers October 27, 2026 20:33
@parshimers parshimers removed the release/v1.3 back porting to release/v1.3 label Nov 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Large dataset file downloads are silently truncated (~15s Envoy Gateway route timeout on the MinIO presigned-URL path)

3 participants