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

Fixed #3595 #4331

Merged
merged 1 commit into from
May 25, 2018
Merged

Fixed #3595 #4331

merged 1 commit into from
May 25, 2018

Conversation

capone212
Copy link
Contributor

@capone212 capone212 commented May 24, 2018

#3595
Stopping heartbeat timer before remove

Stopping heartbeat timer before remove
@capone212 capone212 changed the title Fixed #3595 (https://github.com/hashicorp/nomad/issues/3595) Fixed #3595 May 24, 2018
@capone212
Copy link
Contributor Author

capone212 commented May 24, 2018

Pasted relevant conversation from issue #3595 for the sake of history.

Consider the following scenario:

1. Timer expires and timer handler (invalidateHeartbeat) scheduled for execution
2. The Timer is Reset-ed in resetHeartbeatTimerLockedafter client heartbeat
3. invalidateHeartbeat removes active timer from heartbeatTimers maps
4. client hearbeat inserts new active timer in resetHeartbeatTimerLocked
5. after leaked timer from step 3 expires, it calls invalidateHeartbeat which again leaks active timer from step 4, and essentially we are in circle loop from steps 3 to 5.

The net effect is client status flaps from down to ready constantly.

@dadgar dadgar merged commit 3461634 into hashicorp:master May 25, 2018
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
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