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

follower: Use Buffered syncNow channel to correctly trigger sync in private networks #5516

Merged
merged 1 commit into from Jun 29, 2023

Conversation

algochoi
Copy link
Contributor

Summary

Importing blocks from a follower node lags behind in sandbox due to frequent timeouts when trying to sync the ledger. This PR changes the syncNow channel to a buffered channel to trigger resyncs properly in sandbox.

algorand/conduit#102

Test Plan

Existing tests should suffice and checked on sandbox that conduit syncs quickly.

@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #5516 (5afe43a) into master (68ebeb5) will increase coverage by 0.00%.
The diff coverage is 75.00%.

@@           Coverage Diff           @@
##           master    #5516   +/-   ##
=======================================
  Coverage   55.78%   55.78%           
=======================================
  Files         446      446           
  Lines       63228    63227    -1     
=======================================
+ Hits        35271    35273    +2     
+ Misses      25585    25579    -6     
- Partials     2372     2375    +3     
Impacted Files Coverage Δ
catchup/service.go 72.19% <75.00%> (-0.06%) ⬇️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

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

Nice work 👍

@algochoi algochoi marked this pull request as ready for review June 29, 2023 14:42
@winder winder merged commit 06fedda into algorand:master Jun 29, 2023
17 of 18 checks passed
@winder winder changed the title Fix: Use Buffered syncNow channel to correctly trigger sync in private networks follower: Use Buffered syncNow channel to correctly trigger sync in private networks Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants