Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Collators don't clear connection requests until they produce another collation #5062

Closed
rphmeier opened this issue Mar 9, 2022 · 1 comment · Fixed by #6022
Closed

Collators don't clear connection requests until they produce another collation #5062

rphmeier opened this issue Mar 9, 2022 · 1 comment · Fixed by #6022
Assignees
Labels
I3-bug Fails to follow expected behavior. T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes.

Comments

@rphmeier
Copy link
Contributor

rphmeier commented Mar 9, 2022

/// Issue a connection request to a set of validators and
/// revoke the previous connection request.
async fn connect_to_validators<Context>(ctx: &mut Context, validator_ids: Vec<AuthorityDiscoveryId>)
where
Context: SubsystemContext<Message = CollatorProtocolMessage>,
Context: overseer::SubsystemContext<Message = CollatorProtocolMessage>,
{
// ignore address resolution failure
// will reissue a new request on new collation
let (failed, _) = oneshot::channel();
ctx.send_message(NetworkBridgeMessage::ConnectToValidators {
validator_ids,
peer_set: PeerSet::Collation,
failed,
})
.await;

is only invoked here, after a collation has been sent to the collator-protocol subsystem

tracing::debug!(
target: LOG_TARGET,
para_id = %id,
relay_parent = %relay_parent,
candidate_hash = ?receipt.hash(),
pov_hash = ?pov.hash(),
core = ?our_core,
?current_validators,
"Accepted collation, connecting to validators."
);
// Issue a discovery request for the validators of the current group:
connect_to_validators(ctx, current_validators.validators.into_iter().collect()).await;

If there is no collation for some time, an outdated connection request will remain in-memory.

@rphmeier rphmeier added the I3-bug Fails to follow expected behavior. label Mar 9, 2022
@eskimor eskimor self-assigned this Mar 9, 2022
@slumber
Copy link
Contributor

slumber commented Mar 30, 2022

Better to sync it with #5226 since it changes the connection logic

@ordian ordian moved this to Progress in Parachains-core Aug 16, 2022
@ordian ordian added the T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes. label Aug 16, 2022
@slumber slumber self-assigned this Sep 19, 2022
Repository owner moved this from In progress to Done in Parachains-core Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug Fails to follow expected behavior. T5-parachains_protocol This PR/Issue is related to Parachains features and protocol changes.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants