Skip to content
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

Respect Backoff For Pruned Peer #456

Closed
nisdas opened this issue Oct 5, 2021 · 5 comments
Closed

Respect Backoff For Pruned Peer #456

nisdas opened this issue Oct 5, 2021 · 5 comments

Comments

@nisdas
Copy link
Contributor

nisdas commented Oct 5, 2021

Peer A and Peer B are subscribed to the same topic(Topic X) and have each other in their mesh for Topic X

Peer A then decides to leave the topic and both remove each other from their mesh for this topic. However since Peer B receives a prune message from A ( due to A leaving the topic), it adds a backoff for that topic with that peer. If A rejoins Topic X before the backoff period ends, it will try to graft new peers into the mesh. And if peer B is still connected, Peer B will be regrafted into the mesh. However because Peer B already was pruned previously and had a backoff for that topic, it will penalize Peer A for trying to regraft it into the mesh for Topic X.

The correct behaviour would be for Peer A to also add a corresponding backoff for peers that it prunes this way. That way it will know not to graft in peers who had been previously pruned and had a backoff running(and therefore unintentionally being penalised). Although this would only ever happen if the period of leaving and joining the same topic is within the prune backoff period, this edge case should be handled so that peers are not unintentionally penalised.

@nisdas
Copy link
Contributor Author

nisdas commented Oct 5, 2021

Seems like #367 is essentially the same issue too.

@aschmahmann
Copy link
Contributor

aschmahmann commented Oct 8, 2021

@nisdas can this be closed as a duplicate issue? cc @vyzo.

@vyzo
Copy link
Collaborator

vyzo commented Oct 8, 2021 via email

@vyzo
Copy link
Collaborator

vyzo commented Oct 8, 2021 via email

@nisdas
Copy link
Contributor Author

nisdas commented Oct 9, 2021

Alright lets shift the conversation to #367 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants