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

clarify channels and mutexes #1421

Merged
merged 4 commits into from
Aug 5, 2023
Merged

clarify channels and mutexes #1421

merged 4 commits into from
Aug 5, 2023

Conversation

tudor-malene
Copy link
Collaborator

Why this change is needed

We have a deadlock on the validator node during the robustness tests.
Most likely because of the channels and mutexes of the events/batches.

What changes were made as part of this PR

  • remove channels
  • clarify mutexes
  • change the parameters of the sims to make them faster

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link
Contributor

@StefanIliev545 StefanIliev545 left a comment

Choose a reason for hiding this comment

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

Looks good but needs to be tested if having everything on one goroutine will be sufficient to push out batches. I have a feeling the production might become more rare if sending them back to host is slow (but on the bright side batches will eat more transactions so overall tps should be the same)

@tudor-malene tudor-malene merged commit 0aebb2d into main Aug 5, 2023
2 checks passed
@tudor-malene tudor-malene deleted the tudor/fix_deadlock branch August 5, 2023 10:37
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