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

fix(buffer): Cycle through unready projects #3968

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Aug 30, 2024

Restore last_peek behavior with an explicit function call. This prevents reprioritization between peek and pop.

See #3922, #3960.

Closes: https://github.com/getsentry/team-ingest/issues/523

#skip-changelog

self.changes = false;
// deprioritize the stack to prevent head-of-line blocking
self.buffer.mark_seen(&stack_key);
next_sleep = DEFAULT_SLEEP;
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that we cycle through unready stacks, we should not wait forever or until a new message comes along. Instead, we only sleep for a short default interval. As before, the sleep gets canceled when a new message comes in.

@jjbayer jjbayer marked this pull request as ready for review August 30, 2024 06:59
@jjbayer jjbayer requested a review from a team as a code owner August 30, 2024 06:59
Copy link
Member

@iambriccardo iambriccardo left a comment

Choose a reason for hiding this comment

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

LGTM

@jjbayer jjbayer merged commit 79e7605 into master Aug 30, 2024
24 checks passed
@jjbayer jjbayer deleted the fix/buffer-last-peek branch August 30, 2024 09:12
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