-
Notifications
You must be signed in to change notification settings - Fork 835
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
Kusama parachains not producing blocks for a session #3058
Labels
T8-polkadot
This PR/Issue is related to/affects the Polkadot network.
Comments
alexggh
added a commit
that referenced
this issue
Jan 25, 2024
…lement Topology is coming only at the beginning of each session, so we might lose if prospective parachains was not enabled at the begining of the session, so cache it for later use Fixes: #3058 Signed-off-by: Alexandru Gheorghe <[email protected]>
alexggh
added a commit
that referenced
this issue
Jan 25, 2024
…lement Topology is coming only at the beginning of each session, so we might lose if prospective parachains was not enabled at the begining of the session, so cache it for later use Fixes: #3058 Signed-off-by: Alexandru Gheorghe <[email protected]>
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-digest-26-jan-2024/5848/1 |
github-merge-queue bot
pushed a commit
that referenced
this issue
Jan 29, 2024
…lement (#3063) Topology is coming only at the beginning of each session, so we might lose it if prospective parachains was not enabled at the begining of the session, so cache it for later use. Fixes: #3058 --------- Signed-off-by: Alexandru Gheorghe <[email protected]>
Closed
2 tasks
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/2024-04-21-polkadot-parachains-stalled-until-next-session/7526/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
After v1,001,000 upgrade https://kusama.subsquare.io/referenda/328, kusama parachains blocks were very rarely included in the relay chain until the next session.
Investigation
v1,001,000 runtime upgrade brought with the async_backing_params API: https://github.com/polkadot-fellows/runtimes/blob/e115160682a87798cb6557db9c73e77d00ddb0ab/relay/kusama/src/lib.rs#L1973, that caused several new subsystems(prospective-parachains, statement-distribution-v2) to activate mid-session and that cause backing of candidate to slow down significantly see https://grafana.teleport.parity.io/goto/6jZXXmtSg?orgId=1
Reproducibility
The issue can be reproduce easily with zombienet if we hacked the runtime-api subsystem to fake the presence of
async_backign_params
at block after the session start, something like this:Root-cause
The problem was that NewGossipTopology is emitted at the beginning of each session and we store it in
statement-distribution
v2 in what is called per_session_state, here: https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/node/network/statement-distribution/src/v2/mod.rs#L456.However, the per_session_state is actually created the first time we encounter a leaf that has prospective parachains enabled here: https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/node/network/statement-distribution/src/lib.rs#L320.
So, since we receive the topology at the begining of the session the first block of the session did not have prospective parachains enabled we discarded the topology, so once we started processing blocks with async backing enabled we did not have a valid topology, so we weren't able to distribute our backing statements to other peers. QED.
Conclusions
The text was updated successfully, but these errors were encountered: