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: some containers never return logs, do not wait for them #3784

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

dgolovin
Copy link
Contributor

@dgolovin dgolovin commented Sep 6, 2023

What does this PR do?

List of containers in pod can be returned in any order. When first container in list does not have log, waiting for logsContainer() call blocks the container list iteration and control never gets to container with log. This pr removes await for containerRegistry.logsContainer() call to avoid waiting forever for container without logs.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

Fix #3375.

How to test this PR?

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
@dgolovin dgolovin requested review from benoitf and a team as code owners September 6, 2023 05:35
@dgolovin dgolovin requested review from jeffmaury and cdrage and removed request for a team September 6, 2023 05:35
@dgolovin dgolovin merged commit cc9083d into containers:main Sep 6, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.4.0 milestone Sep 6, 2023
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.

Impossible to get pods logs, when kind cluster is running
3 participants