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] Fix failure to sync on startup #55

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Aug 25, 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.
@heifner heifner added the OCI Work exclusive to OCI team label Aug 25, 2022
@heifner heifner merged commit fe08531 into release/3.1 Aug 30, 2022
@heifner heifner deleted the GH-49-syncing-3.1 branch August 30, 2022 15:45
heifner added a commit that referenced this pull request Apr 29, 2024
IF: Do not use watermarks for savanna
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.

2 participants