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 scheduler bug and add panics #946

Merged
merged 5 commits into from
Apr 29, 2024
Merged

Fix scheduler bug and add panics #946

merged 5 commits into from
Apr 29, 2024

Conversation

cyberphysic4l
Copy link
Contributor

Possible fix for #936
When issuer queues were removed, there was a possibility that the overall buffer size would not decrease by the correct amount do to use of PopFront() in the removeIssuer() function, where the issuer queue size was decreased, but not the overall buffer size. This is now fixed by not using PopFront in this place.

Also some panics have been added in places where we check for conditions that should never occur. Rather than return nil or some empty value, we should panic in such cases to detect the problem early.

@muXxer muXxer force-pushed the fix/scheduler-bug branch from 36ad29c to 809012e Compare April 29, 2024 14:22
@muXxer muXxer merged commit 04a114d into develop Apr 29, 2024
4 checks passed
@muXxer muXxer deleted the fix/scheduler-bug branch April 29, 2024 14:38
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.

shutdown hanging, somehow prometheus related OOM Crash - failed to store on BlockDropped in retainer
2 participants