Skip to content

fix(v2): segment upload timeout #4097

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

Merged
merged 3 commits into from
Apr 16, 2025
Merged

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Apr 12, 2025

Currently, the segment upload timeout is applied to each individual attempt. In practice, I saw that a configuration with 3 attempts and 1s timeout may take up to 5 seconds, which is not desirable.

This change modifies the behavior so that the timeout covers the entire upload routine – including backoff intervals, delays, and other overhead – making the process more predictable.

If a single attempt takes too long (e.g., due to a slow connection), it may be recovered using a hedged request. Regular retries are intended to recover from transient errors.

@kolesnikovae kolesnikovae marked this pull request as ready for review April 12, 2025 09:49
@kolesnikovae kolesnikovae requested a review from a team as a code owner April 12, 2025 09:49
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

This makes the retries quite a bit more predictable.

@kolesnikovae kolesnikovae merged commit 5ef35aa into main Apr 16, 2025
20 checks passed
@kolesnikovae kolesnikovae deleted the fix/segment-upload-timeout branch April 16, 2025 01:22
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