Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions prdoc/pr_11332.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: 'client/db: Close missing body gaps for non archive nodes'
doc:
- audience: Node Dev
description: |-
This PR closes missing body gaps in the database for non-archive nodes.


Effectively, a missing body gap cannot be closed on the DB side if the node is non-archive. Since execution is already skipped, the node will close the memory gap in the sync engine; however, the gap remains open in the db.

This leads to wasting resources at every startup:
- client info contains a gap that cannot be filled (since we don't have the state around for execution)
- blocks are fetched from the connected peers
- gap is filled by ignoring blocks in the sync engine

Further, for collators on origin master this causes an infinite loop of sync engine restarts that get punished via banning and disconnecting. For more details and root cause check:
- https://github.com/paritytech/polkadot-sdk/pull/11330

Part of:
- https://github.com/paritytech/polkadot-sdk/issues/11299
crates:
- name: sc-client-db
bump: patch
Loading
Loading