Repository navigation
Conversation
Honor Retry-After with bounded attempts and cumulative retry waiting. Retain successful-body streaming, cancellation and sanitized HTTP errors. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 176/176 AI-Contributed/UT: 0/0
Export the retry capability from the native extension so callers can retain serial defaults with runtimes lacking bounded HTTP 429 recovery. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 3/3 AI-Contributed/UT: 8/8
JingsongLi
approved these changes
Nov 25, 2026
JingsongLi
reviewed
Nov 26, 2026
| fn pypaimon_rust(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> { | ||
| // Python callers can retain serial defaults with older runtimes that | ||
| // cannot recover from transient throttling of concurrent HTTP BLOB reads. | ||
| m.add("HTTP_BLOB_RETRY_SUPPORTED", true)?; |
Contributor
There was a problem hiding this comment.
Maybe just modify default value? It looks like we don't need to worry about compatibility here.
Keep the HTTP retry fix independent of Python default-concurrency policy, as requested in review. Remove the capability-only binding test as well. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 AI-Contributed/Feature: 3/3 AI-Contributed/UT: 8/8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Closes #1547.
HTTP BLOB reads currently fail immediately on 429, even when the origin supplies
Retry-After. Retry rejected requests before opening a successful body so transient throttling does not turn concurrent descriptor reads into immediate query failures.This addresses the native-reader issue identified in apache/paimon#11431, originally reproduced at its commit
ca47d2acd254d5b5684d15df7f4661743e1daa23. It is independent of the Python default-concurrency change and does not change the Rust default concurrency.Brief change log
Retry-After; use 100/200/400 ms backoff when the header is absent or malformed.httpdatecrate a direct dependency; no dependency versions change.Tests
Retry-After: 1; the regression fails on the base revision and passes after the fix, checking the delay, request count, and selected bytes.cargo test --locked --offline -p paimon --lib io::uri_reader: 5 passed.cargo fmt --all --checkandgit diff --check: passed.API and Format
No public API, default concurrency, or storage-format changes. Throttled HTTP origins may now succeed after bounded waiting rather than fail on the first response.
Documentation
The retry bounds and response-body boundary are documented in the implementation.
The Python capability flag was removed following review. The already merged Python consumer in apache/paimon#11431 still falls back to concurrency 1 when the flag is absent; changing that default belongs in a separate Python-side change, not this HTTP retry fix.