Skip to content

transport/manager: Investigate connection closed for a nonexistent peer #237

@lexnv

Description

@lexnv

Substrate panic triggered on debug_assert:

Thread 'tokio-runtime-worker' panicked at 'assertion failed: false', /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/litep2p-0.6.2/src/protocol/transport_service.rs:220

Code path:

let Some(context) = self.connections.get_mut(&peer) else {
tracing::warn!(
target: LOG_TARGET,
?peer,
?connection_id,
"connection closed to a non-existent peer",
);
debug_assert!(false);
return None;
};

Substrate issue: paritytech/polkadot-sdk#5595
Grafana link: https://grafana.teleport.parity.io/goto/sR83XkeSg?orgId=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions