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: add a limit to queue draining logic #1441

Merged
merged 2 commits into from
Nov 20, 2024
Merged

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Nov 20, 2024

Which problem is this PR solving?

The timer may never fire due to Go scheduler starving the timer goroutine.
To prevent the timer being starved, this PR adds a limit to the number of spans being processed during one iteration of the collect loop

Short description of the changes

  • add a limit to the draining logic

@VinozzZ VinozzZ self-assigned this Nov 20, 2024
@VinozzZ VinozzZ requested a review from a team as a code owner November 20, 2024 00:33
@VinozzZ VinozzZ added this to the v2.9 milestone Nov 20, 2024
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

Just like we talked about.

@VinozzZ VinozzZ merged commit 9ff7bb2 into main Nov 20, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong/add_limit_in_draining branch November 20, 2024 02:47
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