-
Notifications
You must be signed in to change notification settings - Fork 200
Stopping logging error when the connection no longer exists #753
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
Stopping logging error when the connection no longer exists #753
Conversation
Welcome @maqiuyujoyce! |
Hi @maqiuyujoyce. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
d3716a4
to
3494341
Compare
pkg/agent/client.go
Outdated
@@ -407,7 +413,13 @@ func (a *Client) Serve() { | |||
closePkt.GetCloseResponse().ConnectID = connID | |||
} | |||
if err := a.Send(closePkt); err != nil { | |||
klog.ErrorS(err, "close response failure", "") | |||
if err == io.EOF { | |||
klog.V(2).InfoS("received EOF; connection already closed", "connectionID", connID, "dialID", dialReq.Random, "err", err) |
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.
Using https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md#what-method-to-use as a guide, this does not represent a significant state change to the system (to me). This feels more like a V(4) to me "Logging in particularly thorny parts of code where you may want to come back later and check 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.
Makes sense! Done. Thank you for the guidance doc - it helps!
Change seems good and generally an improvement. Happy to LGTM but leaving @maqiuyujoyce the option to change the flagged log level. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, maqiuyujoyce 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 |
Fixes #449