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(balancer) stop DNS renewal on target event #8497

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

locao
Copy link
Contributor

@locao locao commented Mar 3, 2022

Summary

If the target event received is not creating a new target, the DNS record renewal for said record must be stopped. If it's not, Kong will keep resolving every removed/updated target it ever known.

Full changelog

  • When a target event different from "create" is received, remove the hostname from the heap containing the hostnames that must be resolved.
  • As the heap is not exposed outside of targets.lua, no tests were added.

FTI-2927

@StarlightIbuki StarlightIbuki requested a review from a team March 8, 2022 05:41
@locao locao added this to the 2.6.1 milestone Mar 29, 2022
If the target event received is not creating a new target, the DNS
record renewal for said record must be stopped. If it's not, Kong will
keep resolving every removed/updated target it ever known.
@kikito kikito merged commit 27c4685 into release/2.6.x Apr 5, 2022
@kikito kikito deleted the fix/dont_resolve_removed branch April 5, 2022 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants