-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: reduce logs noise when attach input on ExecStartAndAttach
#25345
fix: reduce logs noise when attach input on ExecStartAndAttach
#25345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just some small comments. Also please add Fixes #25344
to your commit message body.
I looked at the tests and I don't think it is worth it to mess with the logrus options just to check for a single line so I add "Now New Tests"
f49768a
to
bd2675c
Compare
Fixes containers#25344 Signed-off-by: Lucas Pablo Calisi <calisi.lucas@gmail.com>
bd2675c
to
bbb9424
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if err != nil && err != define.ErrDetach { | ||
// Ignore "closed network connection" as it occurs when the container ends, which is expected. | ||
// This avoids noisy logs but does not fix the goroutine leak | ||
// https://github.com/containers/podman/issues/25344 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im confused. the comment says it does not fix the issue, but the commit says it closes it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baude Thanks for your review!
The issue mainly addresses the noisy logs, but as @Luap99 mentioned, we have no way to close the goroutine. This change fixes the noisy logs but does not address the root cause of the goroutine leak.
If you think we should update the comment or the issue title, please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just looking for some clarification ... LGTM otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lpcalisi, Luap99 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:
Approvers can indicate their approval by writing |
closes #25344
Does this PR introduce a user-facing change?
cc @mesaglio