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 for leaking target groups on service delete #525

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

erikfuller
Copy link
Contributor

What type of PR is this?
bug fix

Which issue does this PR fix:
n/a

What does this PR do / Why do we need it:
Target group deletion following service deletion is hitting a race condition where the target group is still considered associated to the service via a listener. This PR removes listeners explicitly prior to service deletion, which should ensure TGs for the service are free to delete.

If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
Race condition sometimes occurs running GRPC end-to-end tests.

Testing done on this change:
updated unit tests

Automation added to e2e:
ran GRPC test

Will this PR introduce any new dependencies?:
no

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
n/a

Does this PR introduce any user-facing change?:
No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

A minimal sanity check on changes can be done with make presubmit. This command will also run on PR.
A minimal test of changes can be done with ```make presubmit```. This command will also run on PR.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed non-inclusive/ableist language here.

Copy link
Contributor

@solmonk solmonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@solmonk solmonk merged commit f69e34c into aws:main Nov 18, 2023
5 checks passed
@erikfuller erikfuller deleted the listener-delete branch February 5, 2024 20:58
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.

3 participants