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

Ingest waits for delays from s3 #1483

Merged
merged 3 commits into from
Mar 26, 2025
Merged

Ingest waits for delays from s3 #1483

merged 3 commits into from
Mar 26, 2025

Conversation

MalinAhlberg
Copy link
Contributor

Related issue(s) and PR(s)

This PR closes #1430 .

Description

Ingest needs the GetFileSize to accept some delay from s3, so that it does not immediately fail when receiving NoSuchKey or NotFound. At other points, however, this extra waiting time is not wanted, for example when calling the function from verify, since that would give 2 minutes extra waiting time before the call fails (if the file is not present in the storage). Notably, this test would require a lot of retries.

My assumption is that it should be optional whether a delay from s3 should be expected or not.
This PR therefore adds an extra parameter to allow for this.
If you have other ideas, please feel very welcome to post them here.

How to test

Make sure all tests pass. You could also mock this call so that it does not find the queried file at once.

@MalinAhlberg MalinAhlberg requested a review from a team March 17, 2025 13:21
pahatz
pahatz previously approved these changes Mar 20, 2025
Copy link
Contributor

@pahatz pahatz left a comment

Choose a reason for hiding this comment

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

Looks like it should work fine.

@MalinAhlberg MalinAhlberg force-pushed the fix/ingest-waits-for-s3 branch 2 times, most recently from b4b979e to 496df2d Compare March 21, 2025 09:19
@MalinAhlberg MalinAhlberg requested review from jbygdell and pahatz March 21, 2025 09:23
Copy link
Contributor

@nanjiangshu nanjiangshu left a comment

Choose a reason for hiding this comment

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

Looks great!

@MalinAhlberg MalinAhlberg force-pushed the fix/ingest-waits-for-s3 branch from 496df2d to bf5f2b9 Compare March 26, 2025 09:22
@MalinAhlberg MalinAhlberg enabled auto-merge March 26, 2025 09:22
@MalinAhlberg MalinAhlberg added this pull request to the merge queue Mar 26, 2025
Merged via the queue into main with commit ddbc4d6 Mar 26, 2025
26 of 32 checks passed
@MalinAhlberg MalinAhlberg deleted the fix/ingest-waits-for-s3 branch March 26, 2025 09:28
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.

Ingest should wait for s3 backend when reading file
4 participants