Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A temporary credential-provider outage can terminate an operation before the storage client's HTTP retry loop starts. Add an opt-in provider wrapper that waits with capped exponential backoff for known transient I/O failures, preserving the original operation, provider identity and forced-refresh behavior. Permanent, unknown and external errors return unchanged; dropping the caller cancels its awaited provider future and backoff.

Wrap the origin provider once before constructing its storage-options accessor. The provider retains its own request timeout and attempt policy. Shared observations distinguish retry decisions from actual provider invocations, record provider/backoff time including cancelled intervals, and expose active calls and recovery, failure and cancellation outcomes. The wrapper does not retry application mutations or create background tasks.

Refs #378.

Testing

  • Four focused tests cover permanent errors, forced refresh, cancellation and native Azure HEAD/PUT calls against a local HTTP endpoint. They verify zero blob requests during the provider outage and one request after recovery in the original operation, along with observation counts and elapsed time.
  • cargo clippy -p lance-context-ingest --features http-client,materializer --all-targets -- -D warnings passed.
  • Full repository CI helper passed: workspace formatting, all-target Clippy and tests; Python bindings (236 passed, 11 skipped, 1 expected failure), Ruff and Pyright.
  • Local editable installation ran out of disk while copying the completed native extension. Python checks use the byte-verified extension built at this commit on another filesystem; its actual import path is verified, and unchanged Python dependencies are retained with UV_NO_SYNC=1.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.46018% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/lance-context-ingest/src/credentials.rs 91.11% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@beinan
beinan marked this pull request as ready for review November 27, 2026 08:25
@beinan
beinan merged commit eb10cb3 into lance-format:main Nov 27, 2026
21 checks passed
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.

2 participants