-
Notifications
You must be signed in to change notification settings - Fork 709
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
Collators sometimes miss blocks #5349
Comments
@JayPavlina which version of the template are you using? |
I used the most recent and v1.9.0. For v1.8.0 and lower I used this template. I ran at least 10 different versions as I was narrowing down which commit caused it. It doesn't happen on v1.7.3, but it will happen any version above that. |
The most recent template is using the |
Undoing the PR fixed it for v1.9.0. That's what we are using on our testnet. |
We only want to build one block per slot for Aura on parachains. However, we still need to build on each relay chain fork, which is using the same slot. Closes: #5349 --------- Co-authored-by: Davide Galassi <davxy@datawok.net> Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
There is a bug introduced in #3308 that causes collators to sometimes miss blocks, causing longer block times and triggering a reorg. You can reproduce the issue by building the parachain template and polkadot, and then run them with zombienet. If you look at the latency screen, you will see something like this:
Undoing everything in #3308 fixes the problem and the collators will no longer periodically miss blocks. It seems to happen whether or not async backing is enabled, but I mostly tested on older versions without it.
In my testing, the bug only occurs if both the relaychain and parachain are using binaries that include that commit. If either one was built from a version before that commit, the collator performs normally.
We experienced this bug on our testnet when upgrading Enjin Blockchain to polkadot sdk v1.9.0. We worked backwards to find the first version that worked correctly. We solved the issue by forking the sdk and undoing the changes in the mentioned PR.
Steps to reproduce
Here is the zombienet config I used:
The text was updated successfully, but these errors were encountered: