-
Notifications
You must be signed in to change notification settings - Fork 215
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: skip transient grpc errors in pktmon #1265
base: main
Are you sure you want to change the base?
Conversation
8770822
to
de3319d
Compare
de3319d
to
d24986e
Compare
// commonly seen with: | ||
// {"error":"failed to receive pktmon event: rpc error: code = Internal desc = unexpected EOF"} | ||
// {"error":"failed to receive pktmon event: rpc error: code = Internal desc = received 65576-bytes data exceeding the limit 65535 bytes"} | ||
// {"error":"failed to receive pktmon event: rpc error: code = Internal desc = grpc: failed to unmarshal the received message: proto: cannot parse invalid wire-format data"} |
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.
Does the Windows team have work items captured to fix these errors?
return errors.Wrapf(err, "failed to get current working directory for pktmon") | ||
} | ||
|
||
cmd := pwd + "\\" + "controller-pktmon.exe" |
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.
Would it be better to locate this with exec.LookPath
?
|
||
func (p *WindowsGRPCManager) Stop() error { | ||
if p.pktmonCmd != nil { | ||
err := p.pktmonCmd.Process.Kill() |
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.
This is fire-and-forget. Do we care? If so, we need p.pktmonCmd.Process.Wait()
(and probably some context timeout).
Description
There are known transient issues that show up running gRPC on windows in hostnetworking, a few of these don't need restart the client/server. The goal here is to accommodate those transient errors while preserving restart behavior for critical errors.
Related Issue
If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.
Checklist
git commit -S -s ...
). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes made.
Additional Notes
Add any additional notes or context about the pull request here.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.