Skip to content

fix(retry): respect range header on retry#690

Open
dentiny wants to merge 1 commit intoapache:mainfrom
dentiny:hjiang/fix-retry-range
Open

fix(retry): respect range header on retry#690
dentiny wants to merge 1 commit intoapache:mainfrom
dentiny:hjiang/fix-retry-range

Conversation

@dentiny
Copy link
Copy Markdown
Contributor

@dentiny dentiny commented Apr 10, 2026

Which issue does this PR close?

Closes #654

Rationale for this change

Disclaimer: this PR tries to solve the same problem as #609, but did a different way: I tried to keep the bytes since I observe (for my usage personally) most of returned range is a superset for requested range.
Feel free to close it if maintainers think it's a duplicate.

Currently retry stream returns returned body directly without checking the range header.

body = retry_body;

What changes are included in this PR?

Since retried response could contain ranges which don't match with requested one, so I tried to keep useful parts if applicable.

Are there any user-facing changes?

No.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid range in read with get from object_store

1 participant