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

exec: fix cleanup #11055

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Conversation

vrothberg
Copy link
Member

Commit 341e6a1 made sure that all exec sessions are getting cleaned up.
But it also came with a peformance penalty. Fix that penalty by
spawning the cleanup process to really only cleanup the exec session
without attempting to remove the container.

[NO TESTS NEEDED] since we have no means to test such performance
issues in CI.

Fixes: #10701
Signed-off-by: Valentin Rothberg [email protected]

@edsantiago PTAL

Commit 341e6a1 made sure that all exec sessions are getting cleaned up.
But it also came with a peformance penalty.  Fix that penalty by
spawning the cleanup process to really only cleanup the exec session
without attempting to remove the container.

[NO TESTS NEEDED] since we have no means to test such performance
issues in CI.

Fixes: containers#10701
Signed-off-by: Valentin Rothberg <[email protected]>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 27, 2021
@edsantiago
Copy link
Member

This completely fixes the exec hang, and now cp tests run in reasonable time. Thank you!

@vrothberg
Copy link
Member Author

Excellent, thank you for checking and for reporting the issue!

@containers/podman-maintainers PTAL

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert, vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [saschagrunert,vrothberg]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@vrothberg
Copy link
Member Author

Merge me please

@Luap99
Copy link
Member

Luap99 commented Jul 27, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2021
@openshift-merge-robot openshift-merge-robot merged commit b6c279b into containers:main Jul 27, 2021
@vrothberg vrothberg deleted the fix-10701 branch July 27, 2021 13:32
@mheon
Copy link
Member

mheon commented Jul 27, 2021

Do we know if this made it into any release, or was it purely in upstream?

@edsantiago
Copy link
Member

git tag --contains 341e6a1 (empty output) suggests that it has not been released into the wild.

@vrothberg
Copy link
Member Author

Yes, it only hit the main branch. With 3.3 around the corner, I didn't bother doing a BZ dance.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman exec: periodic 30-second CPU-hogging hangs
6 participants