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

Don't re-fetch all containers for "cleanup" event #1329

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Jul 4, 2023

This does not mean that the container goes away, that will only happen for the "remove" event. "cleanup" will also happen (twice!) between "died" and "init" for restarting a container.

This avoids two parallel getContainer() calls with possibly inconsistent information, and generally reduces the number of getContainer() calls.


This fixes testLifecycleOperations failures like this and this. debugging notes, stress-tested in #1324

This does not mean that the container goes away, that will only happen
for the "remove" event. "cleanup" will also happen (twice!) between
"died" and "init" for restarting a container.

This avoids two parallel getContainer() calls with possibly inconsistent
information, and generally reduces the number of getContainer() calls.
@martinpitt martinpitt requested a review from jelly July 4, 2023 06:31
@martinpitt martinpitt added the flake unstable test label Jul 4, 2023
Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

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

@martinpitt martinpitt merged commit a101f88 into cockpit-project:main Jul 4, 2023
@martinpitt martinpitt deleted the cleanup-event branch July 4, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flake unstable test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants