Repository navigation
fix(core): use context timers for retry and recover default reqwest initialization - #9633
Merged
Merged
Conversation
…nitialization Return a configuration error for an unavailable async timer and retain the executor on open handles. Exclude placeholder versions from read recovery and document compose delegation. Publish the shared default HTTP client to the cache after construction succeeds. Return a recoverable configuration error if provider-free Rustls needs a process provider.
Use the Java executor runtime for async backoff. Build reqwest clients with the resolved TLS features and translate only the known native missing-provider panic when unwinding is enabled. Preserve the configured panic hook and document the abort profile behavior.
The reqwest transport only depends on Rustls directly in its own tests. Remove the stale dependency edge from the downstream example so its documented locked Cargo invocation resolves again.
Checksum, Foyer, and B2 retry tests run on Tokio but need its timer in the operator context. Attach the existing Tokio executor adapter so each fixture reaches the same retry and replay assertions.
Preserve the Reqwest Rustls alias and provider recovery migration instructions. Resolve the checksum fixture import after main removed CapabilityCheckLayer.
PsiACE
approved these changes
Dec 4, 2026
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.
Which issue does this PR close?
Closes #9548
Rationale for this change
RetryLayer's implicit Tokio timer can panic when an operation retries on a different runtime. During read recovery, a mutable
"null"version can also be mistaken for a stable validator. Reqwest can panic when it builds the default client before the application installs a required Rustls provider.What changes are included in this PR?
ConfigInvalidwith the triggering error as its source. Synchronous factory retries use blocking waits."null"read versions as absent so recovery uses the remaining validators. Matching strong ETags can support resumption.context.http.*client factory returnConfigInvalid. The same default transport can initialize after provider installation. Apanic = "abort"build aborts if reqwest panics because the provider is missing.Are there any user-facing changes?
A public
Operator::statcall recovered from a temporary failure with Compio outside Tokio. Java's publicAsyncOperator.statretried an HTTP 503 and returned the metadata from a second HEAD with both shared and dedicated executors. The default transport andcontext.http.*also work when a separate dependency enables reqwest's built-in provider. In a provider-free build with panic unwinding, the same default transport made a successful request after provider installation.Breaking changes
Affected packages: core
Migration:
RetryLayerpreviously used the implicit Tokio or browser timer, supply an executor that implementsExecute::sleepthroughOperationContext::with_executorandOperator::with_context. For operators using the process-wide default, install a timer-capable executor withExecutor::install_default. On Tokio, useopendal-executor-tokiowith the time driver enabled.AI Usage Statement
magpie/codex/gpt-6.2-astra,higheffort. Traced the retry and transport contracts and proposed the acceptance cases.magpie/codex/gpt-6.2-sol,maxeffort. Implemented and verified the changes, revised them after independent review, checked integration with main, and prepared this PR description. The native recovery path recognizes the missing-provider panic emitted by reqwest 0.13.4 and 0.13.5.magpie/codex/gpt-6.2-sol,higheffort. Independent reviewers reproduced the Java and downstream Cargo feature unification regressions in the first candidate, reconstructed the later integrated tree, and verified locked dependency resolution for the FIPS TLS example.magpie/devin/swe-2-1,higheffort. Independently verified Java retry timers, downstream TLS feature selection, and recovery after provider installation. Reviewed the main integration and CI repair, and reran all four affected tests on the signed candidate.