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(sync): fix concurrent map read-write crash #1112

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

themantre
Copy link
Contributor

Description

A concurrent map iteration and map write crash occurred when IteratePeers was called by gRPC and the Peers map was updated simultaneously. This patch fixes this crash.

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Merging #1112 (e4124ab) into main (a139ddd) will increase coverage by 0.07%.
The diff coverage is 95.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1112      +/-   ##
==========================================
+ Coverage   81.23%   81.31%   +0.07%     
==========================================
  Files         173      173              
  Lines        9211     9214       +3     
==========================================
+ Hits         7483     7492       +9     
+ Misses       1369     1365       -4     
+ Partials      359      357       -2     

@themantre themantre merged commit c65fefc into main Feb 14, 2024
12 checks passed
@themantre themantre deleted the crash-concurrent-map-write branch February 14, 2024 15:59
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.

1 participant