Skip to content

fix(v2): make segment upload hedging limiter respect context #4252

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 1 commit into from
Jun 24, 2025

Conversation

kolesnikovae
Copy link
Collaborator

Previously, if the segment writer failed to upload to object storage, it could hit the hedge request rate limit and block clients ignoring the upload timeout context. This could lead to unbounded memory usage and potential OOM if object storage became unavailable. This change ensures the limiter respects the upload context.

@kolesnikovae kolesnikovae requested a review from alsoba13 June 13, 2025 12:49
@kolesnikovae
Copy link
Collaborator Author

cc @alsoba13

@kolesnikovae kolesnikovae force-pushed the fix/segment-upload-hedge-limiter branch from 7501da7 to 1cf9d17 Compare June 14, 2025 09:16
@kolesnikovae kolesnikovae marked this pull request as ready for review June 15, 2025 05:42
@kolesnikovae kolesnikovae requested a review from a team as a code owner June 15, 2025 05:42
@alsoba13
Copy link
Contributor

Sorry for the delay.

LGTM

@kolesnikovae kolesnikovae merged commit b9f4ac4 into main Jun 24, 2025
24 checks passed
@kolesnikovae kolesnikovae deleted the fix/segment-upload-hedge-limiter branch June 24, 2025 03:00
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