-
Notifications
You must be signed in to change notification settings - Fork 745
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
"An unneeded collator connected" when parachain runs out of core time #6733
Comments
Hey @tmpolaczyk I think |
Hi @tdimitrov . The setup is a bit complex, this is our collator code: If you are willing to compile, it can be reproduced using Can you show me which part of the code handles the unassignment? Maybe we missed that. |
Unfortunately I'm not an expert on the collator code and can't tell exactly where this is handled. @skunert can you help? Does the lookahead collator disconnect from the validator if its para id is not assigned on any core? |
Took a look. It looks like you are running a modified version of the lookahead. Which version of polkadot-sdk are you using? Is the collator still producing blocks even without coretime? Looking at the code, you are indeed checking for cores here and if no cores available, should produce no blocks. From the earlier description, it sounds like to me that the collator is not producing blocks but still connecting and disconnecting all the time from validators. |
We are using stable2409: https://github.com/moondance-labs/polkadot-sdk/tree/tanssi-polkadot-stable2409 Indeed the collator is not trying to produce blocks, so that part is correct, but it is still connecting to the validators. |
That's correct. Disconnecting from validators depend on the type of the collator being used but on the collator protocol implementation. It seems that the collator disconnects from all validators at the point where there is nothing to advertise to them (here but I don't understand what's going wrong in your case. I need to investigate this further. |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Related: #616
I believe currently collators don't properly disconnect from validators, because I see these logs in the validators when a parachain runs out of core time:
It stays like this forever, with the same peer trying to connect and getting banned exactly every 1 second. Any advice on how to fix it? Although since it keeps connecting forever, the collator doesn't actually get banned so this is not a problem? Not sure.
Steps to reproduce
Start a local testnet and remove the core assignment from the para
The text was updated successfully, but these errors were encountered: