YannByron opened a new pull request, #1548: URL: https://github.com/apache/paimon-rust/pull/1548
### 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](https://github.com/apache/paimon/pull/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 only HTTP 429, at most three retries after the initial GET. - Honor delta-seconds and HTTP-date `Retry-After`; use 100/200/400 ms backoff when the header is absent or malformed. - Cap cumulative retry sleeps at 30 seconds. A server delay beyond the remaining budget fails immediately rather than retrying before the server permits it. This is a waiting budget, not a new timeout for network I/O. - Drop rejected responses before sleeping. Do not replay successful response bodies or retry other status codes. Preserve sanitized errors. - Make the already locked `httpdate` crate a direct dependency; no dependency versions change. ### Tests - A real HTTP server returns 429 once with `Retry-After: 1`; the regression fails on the base revision and passes after the fix, checking the delay, request count, and selected bytes. - Cover HTTP dates, malformed/absent headers, retry and waiting limits, numeric overflow, persistent 429, non-retryable 403/503, and signed-URL/error-body sanitization. - Existing decoded-offset and stream-reuse regression remains green. - `cargo test --locked --offline -p paimon --lib io::uri_reader`: 5 passed. - `cargo fmt --all --check` and `git diff --check`: passed. - Built a development Python wheel from this source and passed three end-to-end P3 regressions: both Arrow APIs recover correct payloads after real 429 responses and the requested delay; the high-level scan can explicitly retain serial reads. The existing released 0.5.0 runtime fails the two default-concurrency recovery cases. ### API and Format No public API 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 dependent Python PR must wait for a published runtime containing this fix before increasing default HTTP BLOB concurrency. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
