-
Notifications
You must be signed in to change notification settings - Fork 699
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
Addresses getting removed from Kademlia after a disconnection #498
Labels
I2-bug
The node fails to follow expected behavior.
I3-annoyance
The node behaves within expectations, however this “expected behaviour” itself is at issue.
Comments
the-right-joyce
added
I2-bug
The node fails to follow expected behavior.
I3-annoyance
The node behaves within expectations, however this “expected behaviour” itself is at issue.
and removed
I3-bug
labels
Aug 25, 2023
1 task
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 8, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 8, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 8, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 8, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 9, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 10, 2024
* removed unused file * another unused file
serban300
pushed a commit
to serban300/polkadot-sdk
that referenced
this issue
Apr 10, 2024
* removed unused file * another unused file
bkchr
pushed a commit
that referenced
this issue
Apr 10, 2024
* removed unused file * another unused file
This was referenced Jun 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I2-bug
The node fails to follow expected behavior.
I3-annoyance
The node behaves within expectations, however this “expected behaviour” itself is at issue.
There is this pattern in the logs:
As the node disconnects, the address is removed from Kademlia and since the address it not stored anywhere else, the next time
ProtocolController
attempts to connect to the peer, the dial fails because there are no addresses available. The problem is that the addresses that get removed when a node disconnects (such as due to keep-alive timeout) are actually valid so there is no reason to delete them because after they're deleted, the node can no longer dial the peer.I looked into the Kademlia code and there wasn't anything obviously incorrect so it could be that this is the expected behavior. This is relatively easily fixed on Substrate side by keeping an LRU cache of peers and their addresses and in case libp2p doesn't give any addresses, we could take the addresses from this cache.
Not sure if this is an actual bug or just annoyance but adding both tags.
The text was updated successfully, but these errors were encountered: