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

[4.0] Correctly handle close while syncing #1171

Merged
merged 2 commits into from
May 16, 2023
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented May 13, 2023

When generating snapshots during syncing, nodeos would timeout a sync and close the connection. The close would cause all queued blocks on that connection to be dropped. Also the sync_next_expected_num would not be reset because the sync_source had been reset.

Resolves #1170

@heifner heifner requested review from dimas1185 and linh2931 May 13, 2023 03:48
@heifner heifner added this to the Leap 4.0.1 milestone May 13, 2023
@heifner heifner added the OCI Work exclusive to OCI team label May 13, 2023
}
return;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Note this was already removed on main as an optimization. See #1045.

@@ -1591,7 +1591,7 @@ namespace eosio {
sync_known_lib_num = highest_lib_num;

// if closing the connection we are currently syncing from, then reset our last requested and next expected.
Copy link
Member

Choose a reason for hiding this comment

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

Can you update this comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@heifner heifner requested a review from vladtr May 15, 2023 21:11
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.

Getting unlinkable_block_exception when generating a snapshot which is not at current block
3 participants