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

Improve race condition on parallel IP free. #96

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Jul 30, 2024

This PR should mitigate a possible race condition where ephemeral IPs are not properly cleaned up within the same cluster. This can happen when more than one service binds the same IP address (e.g. when two services in the same namespace bind the same IP and then the namespace gets deleted).

The improvement is to put the IP query call behind the mutex acquisition such that the second call for deletion sees the proper IP tags.

This PR should mitigate a possible race condition where ephemeral IP deletion within one cluster can happen when more than one service binds the same IP address.

The improvement is to put the IP query call behind the mutex acquisition such that the second call for deletion sees the proper IP tags.
@Gerrit91 Gerrit91 requested a review from a team as a code owner July 30, 2024 11:07
@Gerrit91 Gerrit91 merged commit 3273337 into master Aug 5, 2024
1 check passed
@Gerrit91 Gerrit91 deleted the mitigate-parallel-ip-free branch August 5, 2024 08:48
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