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

P2P: Reset syncing on unlinkable blocks #2220

Merged
merged 4 commits into from
Feb 7, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Feb 7, 2024

Block producers drop blocks when producing. If a block producer is syncing when they start producing blocks, they will drop blocks causing unlinkable blocks on blocks processed after block production is complete.

Reset sync on unlinkable blocks allowing node to more quickly recover.

Adds new lib_advance_test.py which fails without PR changes.

Related #2159
Related #2133
Resolves #2215

@heifner heifner requested review from linh2931 and greg7mdp February 7, 2024 02:20
@heifner heifner added the OCI Work exclusive to OCI team label Feb 7, 2024
maxActiveProducers=3
totalProducers=maxActiveProducers
cluster=Cluster(unshared=args.unshared, keepRunning=args.leave_running, keepLogs=args.keep_logs)
activateIF=args.activate_if
Copy link
Member

Choose a reason for hiding this comment

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

This should be removed for main.

@heifner heifner merged commit 02da283 into main Feb 7, 2024
26 checks passed
@heifner heifner deleted the GH-2215-lib-sync-main branch February 7, 2024 15:21
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: BUG
summary: Better detection and recovery when a block producer gets out of sync. Previously producer was not able to sync back in and created unlinkable blocks.
Note:end

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.

Unlinkable block storm when syncing a block producer
4 participants