Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Limit the number of times we retry peer discovery interactions #908

Merged
merged 2 commits into from
Feb 19, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

PeerDiscoveryController maintains a set of PeertInteractionState instances in its inflightInteractions along with timers to retry the original request periodically. There is no limit to the number of retries so over time number of inflight interactions grows unbounded as does the number of timers until the vertx thread begins to be blocked.

This PR limits the number of retries and removes the interaction when that limit is reached.

Copy link
Contributor

@mbaxter mbaxter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@ajsutton ajsutton merged commit e35b5f1 into PegaSysEng:master Feb 19, 2019
@ajsutton ajsutton deleted the timeout-discovery-interactions branch February 19, 2019 19:32
rain-on pushed a commit to rain-on/pantheon that referenced this pull request Feb 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants