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 on StaticFileProvider::get_writer #10069

Merged
merged 5 commits into from
Aug 5, 2024

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Aug 4, 2024

Closes: #10046, closes #10072

@emhane emhane added A-consensus Related to the consensus engine C-bug An unexpected or incorrect behavior labels Aug 4, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

@joshieDo could you take a closer look here?

@joshieDo
Copy link
Collaborator

joshieDo commented Aug 5, 2024

pushed a fix. Issue is that holding receipt writer across the loop has 3/100 chance that it will deadlock if another segment writer shares the same shard

will create a separate PR to stop using dashmap for writers, since it's actually an unsuitable fit

@fgimenez fgimenez force-pushed the fgimenez/fix-flaky-persistence-test branch from f4e7e55 to 6b8ec91 Compare August 5, 2024 12:06
@fgimenez fgimenez marked this pull request as ready for review August 5, 2024 12:07
@fgimenez fgimenez added this pull request to the merge queue Aug 5, 2024
Merged via the queue into main with commit 444c7a9 Aug 5, 2024
32 checks passed
@fgimenez fgimenez deleted the fgimenez/fix-flaky-persistence-test branch August 5, 2024 14:24
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine C-bug An unexpected or incorrect behavior
Projects
None yet
4 participants