Skip to content

Backport of [API Gateway] fix dangling service registrations into release/1.2.x#2323

Merged
hc-github-team-consul-core merged 2 commits intorelease/1.2.xfrom
backport/net-4408/fix-dangling-service-registrations/officially-fit-firefly
Jun 9, 2023
Merged

Backport of [API Gateway] fix dangling service registrations into release/1.2.x#2323
hc-github-team-consul-core merged 2 commits intorelease/1.2.xfrom
backport/net-4408/fix-dangling-service-registrations/officially-fit-firefly

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #2321 to be assessed for backporting due to the inclusion of the label backport/1.2.x.

The below text is copied from the body of the original PR.


Changes proposed in this PR:
This bypasses the cache on gateway deletion to make sure we have dropped any registered services in Consul even if we haven't been informed about them via the cache yet. We had a race condition where if a pod was just registered with Consul we might not know about it if the gateway was deleted right away. I noticed this scenario when running conformance tests when we were leaving around services that were no longer there.

How I've tested this PR:
Ran conformance tests and made sure that quickly deleted gateways are cleaned up in Consul

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/net-4408/fix-dangling-service-registrations/officially-fit-firefly branch from b68ec63 to 1761c5b Compare June 9, 2023 14:17
@hc-github-team-consul-core hc-github-team-consul-core enabled auto-merge (squash) June 9, 2023 14:17
@hc-github-team-consul-core hc-github-team-consul-core merged commit a5bb9d1 into release/1.2.x Jun 9, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/net-4408/fix-dangling-service-registrations/officially-fit-firefly branch June 9, 2023 14:26
@t-eckert t-eckert mentioned this pull request Jun 15, 2023
2 tasks
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.

2 participants