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

[3.1 -> main] Fix failure to sync on startup #74

Merged
merged 5 commits into from
Aug 30, 2022
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Aug 30, 2022

3.1.0-rc3 included eosnetworkfoundation/mandel#627 which attempted to fix a producer stuck in a coma state. However, the fix was a bit too aggressive and introduced a race-condition on startup syncing.

This PR reverts the aggressive reset of syncing from LIB instead of HEAD for every call to start_sync. Instead it restarts syncing from LIB only when unlinkable blocks causes a connection to be closed. This should still fix the issue of eosnetworkfoundation/mandel#623 without causing the problem seen in #49.

Resolves #49

…. Revert reset to lib of sync_next_expected_num in start_sync since it is called outside exclusively starting a new sync. When starting a new sync start from lib.
…u sent them the block or if you are syncing.
[3.1] Fix failure to sync on startup
@heifner heifner requested a review from ndcgundlach August 30, 2022 15:47
@heifner heifner merged commit 43aa906 into main Aug 30, 2022
@heifner heifner deleted the GH-49-merge-main branch August 30, 2022 16:37
@heifner heifner added the OCI Work exclusive to OCI team label Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.1 not syncing on startup
2 participants