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

fixes races in blocks fetcher #5068

Merged
merged 1 commit into from Mar 11, 2020
Merged

Conversation

farazdagi
Copy link
Contributor

@farazdagi farazdagi commented Mar 11, 2020

Part of #4815

When working on queueing and processing of the init sync, I've discovered couple of issues in the fetcher (race conditions). This PR resolves them.

NB: The PR doesn't touch round robin routine yet, so it is safe to merge - in sense that it will not break anything.

@farazdagi farazdagi self-assigned this Mar 11, 2020
@farazdagi farazdagi requested a review from nisdas March 11, 2020 11:12
@farazdagi farazdagi added the Ready For Review A pull request ready for code review label Mar 11, 2020
@codecov
Copy link

codecov bot commented Mar 11, 2020

Codecov Report

Merging #5068 into master will decrease coverage by 23.84%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master   #5068       +/-   ##
==========================================
- Coverage   29.03%   5.19%   -23.85%     
==========================================
  Files         216     215        -1     
  Lines       16888   16734      -154     
==========================================
- Hits         4904     869     -4035     
- Misses      11082   15738     +4656     
+ Partials      902     127      -775

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

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

lgtm

@farazdagi farazdagi merged commit 7b30845 into master Mar 11, 2020
@farazdagi farazdagi deleted the init-sync-blocks-fetcher-updates branch March 11, 2020 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants