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 Deadlock when using Rayon #1240

Merged
merged 17 commits into from
Oct 11, 2021
Merged

Fix Deadlock when using Rayon #1240

merged 17 commits into from
Oct 11, 2021

Conversation

ec2
Copy link
Member

@ec2 ec2 commented Oct 11, 2021

Summary of changes
Changes introduced in this pull request:

  • Removed usage of Rayon parallel iterators when doing IO which can result in deadlock
  • Update bellperson from 0.16.1 to 0.16.3 which has some deadlock fixes as well
  • Remove manual creation of global Rayon threadpool

Reference issue to close (if applicable)

Closes

Other information and links

@ec2 ec2 requested a review from a user October 11, 2021 12:39
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM, left one question

@@ -1009,6 +1009,7 @@ where
&self,
vis: &[(&Address, &Vec<SealVerifyInfo>)],
) -> Result<HashMap<Address, Vec<bool>>, Box<dyn StdError>> {
debug!("batch verify seals start");
Copy link

Choose a reason for hiding this comment

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

Do we want to keep these debug statements?

Copy link
Member Author

Choose a reason for hiding this comment

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

i would like to actually. I've found myself needing to log these on multiple different debugging occasions.

@ec2 ec2 merged commit b40f8d1 into main Oct 11, 2021
@ec2 ec2 deleted the ec2/networkingdebug branch October 11, 2021 15:07
@q9f q9f mentioned this pull request Oct 18, 2021
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.

None yet

1 participant