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

Fix pulse update on backend removal #48

Merged

Conversation

sebbonnet
Copy link
Contributor

Remove the pulse info from the stash when a backend is removed.
This is to avoid the scenario where an unhealthy backend stored in the stash remains
unhealthy after being scaled down and up again.
In this case the pulse update had no effect as the removed backend was
still found in the stash.

Fix made in 2 commits to better visualise the actual change in behaviour

No change in functional behaviour.
Document existing behaviour via tests.
Remove the pulse info from the stash when a backend is removed.
This is to avoid the scenario where an unhealthy backend stored remains
unhealthy after being scaled down and up again.
In this case the pulse update had no effect as the removed backend was
still found in the stash.
@codecov-io
Copy link

codecov-io commented Nov 29, 2017

Codecov Report

Merging #48 into master will increase coverage by 6.01%.
The diff coverage is 70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   33.39%   39.41%   +6.01%     
==========================================
  Files          18       18              
  Lines        1018     1030      +12     
==========================================
+ Hits          340      406      +66     
+ Misses        656      594      -62     
- Partials       22       30       +8
Impacted Files Coverage Δ
pulse/status.go 54.54% <0%> (-34.35%) ⬇️
pulse/pulse.go 96.87% <100%> (+0.1%) ⬆️
core/runtime.go 60.71% <72.34%> (+60.71%) ⬆️
core/context.go 20.2% <0%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82f9de7...1f84df8. Read the comment docs.

@sebbonnet
Copy link
Contributor Author

@kobolog would you mind taking a look?

@kobolog
Copy link
Owner

kobolog commented Dec 19, 2017

Looks good!

@kobolog kobolog merged commit 82598db into kobolog:master Dec 19, 2017
@kobolog
Copy link
Owner

kobolog commented Dec 19, 2017

Thanks for the good work!

@rewiko rewiko deleted the fix-pulse-update-on-backend-removal-picked branch December 21, 2017 12:05
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

Successfully merging this pull request may close these issues.

3 participants