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

Kylin sync stuck #773

Closed
heifner opened this issue Sep 13, 2024 · 1 comment · Fixed by #777 or #805
Closed

Kylin sync stuck #773

heifner opened this issue Sep 13, 2024 · 1 comment · Fixed by #777 or #805
Assignees
Labels
bug The product is not working as was intended. 👍 lgtm OCI Work exclusive to OCI team
Milestone

Comments

@heifner
Copy link
Member

heifner commented Sep 13, 2024

Trying to sync kylin from genesis with spring-1.0.1 release. It is stuck at the point LIB does not advance for a bunch of blocks.

image

@heifner heifner added this to the Spring v1.0.2 milestone Sep 13, 2024
@heifner heifner self-assigned this Sep 13, 2024
@heifner heifner added bug The product is not working as was intended. OCI Work exclusive to OCI team triage and removed triage labels Sep 13, 2024
@heifner
Copy link
Member Author

heifner commented Sep 13, 2024

Syncing in irreversible mode which means chain_head == LIB. We restrict syncing to not get too far ahead of chain_head. That causes Kylin to get stuck when it reaches a span where LIB does not move for greater than sync-fetch-span.

heifner added a commit that referenced this issue Sep 13, 2024
heifner added a commit that referenced this issue Sep 13, 2024
…ersible mode the chain_head will still be moving and not cause net_plugin to stop syncing.

Only consider if LIB not moving when the span is greater than sync_fetch_span. Otherwise normal operation will cause net_plugin to sync ahead when fork db is just up to date.
heifner added a commit that referenced this issue Sep 13, 2024
…sync when the peer reported even slightly less than sync_known_lib_num which is a very normal condition. For example sync_known_lib_num: 373330666, while peer_fhead: 373330647 when trying to sync block 129728.
heifner added a commit that referenced this issue Sep 13, 2024
heifner added a commit that referenced this issue Sep 14, 2024
@arhag arhag added 👍 lgtm and removed triage labels Sep 16, 2024
heifner added a commit that referenced this issue Sep 16, 2024
heifner added a commit that referenced this issue Sep 18, 2024
heifner added a commit that referenced this issue Sep 18, 2024
heifner added a commit that referenced this issue Sep 19, 2024
[1.0.2] P2P: Allow irreversible mode syncing to continue when LIB is paused
heifner added a commit that referenced this issue Sep 19, 2024
[1.0.2 -> main] P2P: Allow irreversible mode syncing to continue when LIB is paused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended. 👍 lgtm OCI Work exclusive to OCI team
Projects
Archived in project
3 participants