Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: retryable config enablement through storage_options #3129

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

ion-elgreco
Copy link
Collaborator

@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Jan 14, 2025
@ion-elgreco ion-elgreco force-pushed the feat/configurable_retry branch from eb8fb9b to 96179b0 Compare January 14, 2025 20:09
@ion-elgreco ion-elgreco force-pushed the feat/configurable_retry branch from 96179b0 to 4085c3d Compare January 14, 2025 20:11
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 46.15385% with 49 lines in your changes missing coverage. Please review.

Project coverage is 72.23%. Comparing base (ef066c4) to head (a2639e9).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
crates/core/src/storage/mod.rs 70.58% 7 Missing and 8 partials ⚠️
crates/azure/src/lib.rs 0.00% 12 Missing ⚠️
crates/gcp/src/lib.rs 0.00% 12 Missing ⚠️
crates/lakefs/src/storage.rs 50.00% 1 Missing and 5 partials ⚠️
crates/aws/src/storage.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3129      +/-   ##
==========================================
- Coverage   72.28%   72.23%   -0.05%     
==========================================
  Files         134      134              
  Lines       42973    43059      +86     
  Branches    42973    43059      +86     
==========================================
+ Hits        31062    31104      +42     
- Misses       9923     9956      +33     
- Partials     1988     1999      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small nits to look at.

crates/azure/src/lib.rs Outdated Show resolved Hide resolved
crates/azure/src/lib.rs Outdated Show resolved Hide resolved
let inner = builder
.with_retry(self.parse_retry_config(&options)?)
.build()?;

let store = limit_store_handler(url_prefix_handler(inner, prefix.clone()), options);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, but why do we wrap this in the limiting store again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its due to this PR: #2458

I will put a small PR to actually document this storage option

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roeap I've added docs in this PR, and also included the the other undocumented options :)

crates/core/Cargo.toml Outdated Show resolved Hide resolved
Signed-off-by: Ion Koutsouris <[email protected]>
@ion-elgreco ion-elgreco force-pushed the feat/configurable_retry branch from 8564ac9 to 4c46287 Compare January 14, 2025 20:48
@ion-elgreco ion-elgreco enabled auto-merge January 14, 2025 20:50
@ion-elgreco ion-elgreco disabled auto-merge January 14, 2025 20:56
@ion-elgreco ion-elgreco enabled auto-merge January 14, 2025 21:02
Signed-off-by: Ion Koutsouris <[email protected]>
@ion-elgreco ion-elgreco force-pushed the feat/configurable_retry branch from b94227d to a2639e9 Compare January 14, 2025 21:06
Copy link
Member

@rtyler rtyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for documenting some of these magic hidden variables a bit better 😄

I see you're really loving traits lately 😆

@ion-elgreco ion-elgreco added this pull request to the merge queue Jan 15, 2025
Merged via the queue into delta-io:main with commit 281825e Jan 15, 2025
26 checks passed
@ion-elgreco ion-elgreco deleted the feat/configurable_retry branch January 15, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set max_retry, retry_timeout from python
3 participants