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 #9265

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

oowl
Copy link
Member

@oowl oowl commented Aug 18, 2022

Summary

import from #8497
This bug fix pr was not merged to master, this PR can add this.

But the difference is this PR fixes two bug

  1. Because the worker event trigger callback is async, so one scenario upstream was deleted before on_target_event , So this get_upstream_by_id can return unexpectly.
  2. if target_M.init() was called multiple times(in hybrid mode), renewal_heap and renewal_weak_cache have some Residual data, So we must delete this.

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.

Issue reference

Fix FTI-2927 FTI-4219

@oowl oowl requested a review from a team as a code owner August 18, 2022 07:08
@locao locao merged commit 3379a89 into master Aug 18, 2022
@locao locao deleted the fix/resolve_removed branch August 18, 2022 18:36
locao pushed a commit that referenced this pull request Jun 21, 2024
(cherry picked from commit #13061)

Co-authored-by: Chrono <chrono_cpp@me.com>
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.

3 participants