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

plugin/health: Don't go lameduck when reloading #5472

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

chrisohaver
Copy link
Member

Signed-off-by: Chris O'Haver cohaver@infoblox.com

1. Why is this pull request needed and what does it do?

When reloading health, don't pause for lameduck duration. Only go into lameduck mode on FinalShutdown.
During a reload, going into lameduck just delays the loading of the new config, and during the lameduck sleep, the old config is still served.

The new function OnReload is a copy of OnFinalShutdown with the lameduck pause removed.

2. Which issues (if any) are related?

Related to #5471

3. Which documentation changes (if any) need to be made?

4. Does this introduce a backward incompatible change or deprecation?

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
@codecov-commenter
Copy link

Codecov Report

Merging #5472 (3d829d5) into master (93c57b6) will increase coverage by 1.42%.
The diff coverage is 58.50%.

@@            Coverage Diff             @@
##           master    #5472      +/-   ##
==========================================
+ Coverage   55.70%   57.12%   +1.42%     
==========================================
  Files         224      238      +14     
  Lines       10016    15015    +4999     
==========================================
+ Hits         5579     8577    +2998     
- Misses       3978     5918    +1940     
- Partials      459      520      +61     
Impacted Files Coverage Δ
core/dnsserver/address.go 100.00% <ø> (ø)
core/dnsserver/config.go 0.00% <ø> (ø)
core/dnsserver/onstartup.go 0.00% <0.00%> (ø)
core/dnsserver/server_grpc.go 8.16% <0.00%> (+2.10%) ⬆️
plugin/auto/auto.go 0.00% <0.00%> (ø)
plugin/auto/zone.go 78.94% <ø> (+0.68%) ⬆️
plugin/azure/azure.go 10.61% <0.00%> (-0.57%) ⬇️
plugin/backend_lookup.go 0.00% <0.00%> (ø)
plugin/bind/bind.go 50.00% <0.00%> (-50.00%) ⬇️
plugin/bufsize/bufsize.go 100.00% <ø> (ø)
... and 312 more

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 68e141e...3d829d5. Read the comment docs.

@chrisohaver chrisohaver merged commit d903a96 into coredns:master Jul 6, 2022
gonzalop pushed a commit to gonzalop/coredns that referenced this pull request Jan 14, 2023
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants