-
Notifications
You must be signed in to change notification settings - Fork 867
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(controller): leader election preventing two controllers running and gracefully shutting down #2291
fix(controller): leader election preventing two controllers running and gracefully shutting down #2291
Conversation
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
…to fix-leader-election-bug
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Codecov ReportBase: 82.38% // Head: 82.75% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2291 +/- ##
==========================================
+ Coverage 82.38% 82.75% +0.37%
==========================================
Files 121 121
Lines 18476 18511 +35
==========================================
+ Hits 15221 15319 +98
+ Misses 2468 2408 -60
+ Partials 787 784 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
…to fix-leader-election-bug-ctx
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pair reviewed this with @zachaller
LGTM
…nd gracefully shutting down (argoproj#2291) * WIP on fixing leader election fix Signed-off-by: zachaller <[email protected]> * Start and stop informers as well Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Remove tests that do not test anything Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * Cleanup Signed-off-by: zachaller <[email protected]> * cleanup Signed-off-by: zachaller <[email protected]> * Add back one test Signed-off-by: zachaller <[email protected]> * remove secondary metric server Signed-off-by: zachaller <[email protected]> * Remove secondary metric test Signed-off-by: zachaller <[email protected]> * Add single instance test to catch log lines Signed-off-by: zachaller <[email protected]> * We should shutdown if we can not sync Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * Redo for loop will have another pr that stops via context Signed-off-by: zachaller <[email protected]> * Fix comment Signed-off-by: zachaller <[email protected]> * Add context and graceful shutdown Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Fix test Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * add more time for startup Signed-off-by: zachaller <[email protected]> * add individual controller startup tests Signed-off-by: zachaller <[email protected]> * standardize shutdown Signed-off-by: zachaller <[email protected]> * Standardize leader test Signed-off-by: zachaller <[email protected]> * fix test Signed-off-by: zachaller <[email protected]> * We can not turn on release on cancel Signed-off-by: zachaller <[email protected]> * fix release on cancel Signed-off-by: zachaller <[email protected]> Signed-off-by: zachaller <[email protected]>
…nd gracefully shutting down (argoproj#2291) * WIP on fixing leader election fix Signed-off-by: zachaller <[email protected]> * Start and stop informers as well Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Remove tests that do not test anything Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * Cleanup Signed-off-by: zachaller <[email protected]> * cleanup Signed-off-by: zachaller <[email protected]> * Add back one test Signed-off-by: zachaller <[email protected]> * remove secondary metric server Signed-off-by: zachaller <[email protected]> * Remove secondary metric test Signed-off-by: zachaller <[email protected]> * Add single instance test to catch log lines Signed-off-by: zachaller <[email protected]> * We should shutdown if we can not sync Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * Redo for loop will have another pr that stops via context Signed-off-by: zachaller <[email protected]> * Fix comment Signed-off-by: zachaller <[email protected]> * Add context and graceful shutdown Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Fix test Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * add more time for startup Signed-off-by: zachaller <[email protected]> * add individual controller startup tests Signed-off-by: zachaller <[email protected]> * standardize shutdown Signed-off-by: zachaller <[email protected]> * Standardize leader test Signed-off-by: zachaller <[email protected]> * fix test Signed-off-by: zachaller <[email protected]> * We can not turn on release on cancel Signed-off-by: zachaller <[email protected]> * fix release on cancel Signed-off-by: zachaller <[email protected]> Signed-off-by: zachaller <[email protected]>
…nd gracefully shutting down (argoproj#2291) * WIP on fixing leader election fix Signed-off-by: zachaller <[email protected]> * Start and stop informers as well Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Remove tests that do not test anything Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * Cleanup Signed-off-by: zachaller <[email protected]> * cleanup Signed-off-by: zachaller <[email protected]> * Add back one test Signed-off-by: zachaller <[email protected]> * remove secondary metric server Signed-off-by: zachaller <[email protected]> * Remove secondary metric test Signed-off-by: zachaller <[email protected]> * Add single instance test to catch log lines Signed-off-by: zachaller <[email protected]> * We should shutdown if we can not sync Signed-off-by: zachaller <[email protected]> * fix lint Signed-off-by: zachaller <[email protected]> * Redo for loop will have another pr that stops via context Signed-off-by: zachaller <[email protected]> * Fix comment Signed-off-by: zachaller <[email protected]> * Add context and graceful shutdown Signed-off-by: zachaller <[email protected]> * lint Signed-off-by: zachaller <[email protected]> * Fix test Signed-off-by: zachaller <[email protected]> * github trigger re-run Signed-off-by: zachaller <[email protected]> * add more time for startup Signed-off-by: zachaller <[email protected]> * add individual controller startup tests Signed-off-by: zachaller <[email protected]> * standardize shutdown Signed-off-by: zachaller <[email protected]> * Standardize leader test Signed-off-by: zachaller <[email protected]> * fix test Signed-off-by: zachaller <[email protected]> * We can not turn on release on cancel Signed-off-by: zachaller <[email protected]> * fix release on cancel Signed-off-by: zachaller <[email protected]> Signed-off-by: zachaller <[email protected]>
Fixes #2117
This change has a behavior change in that we now always spin up metrics server even on standby's they just have zero values because they are not processing anything.