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

Automated cherry pick of #5954: Fix race condition in agent Traceflow controller (#5954) #6069

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Mar 6, 2024

Cherry pick of #5954 on release-1.15.

#5954: Fix race condition in agent Traceflow controller (#5954)

For details on the cherry pick process, see the cherry pick requests page.

It may happen that a Traceflow is assigned with a tag that was just
released from an old Traceflow but the controller hasn't processed the
deletion event of the old Traceflow yet. Previously the controller
skipped starting new Traceflow if the tag was already being used, which
caused the Traceflow to timeout.

The commit adds a check when determining whether it should start a
Traceflow. If the tag is associated with another Traceflow, it will
clean it up then start a new trace for the current one.

It also fixes a bug in cleanupTraceflow, which might uninstall flows for
another Traceflow if the tag is reassigned.

Signed-off-by: Quan Tian <[email protected]>
@tnqn tnqn added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Mar 6, 2024
@tnqn
Copy link
Member Author

tnqn commented Mar 6, 2024

/skip-all

@tnqn tnqn merged commit 78bf4ef into antrea-io:release-1.15 Mar 6, 2024
47 of 53 checks passed
@tnqn tnqn deleted the automated-cherry-pick-of-#5954-upstream-release-1.15 branch March 6, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants