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 bundle_timeout issue caused by OVS PacketIn channel #951
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
993fd23
to
e945a50
Compare
for { | ||
select { | ||
case pktIn := <-ch: | ||
if packetInQueue.Len() < packetInQueueSize { |
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.
We need a comment here. Especially because if someone refers to the K8s documentation (https://godoc.org/k8s.io/client-go/util/workqueue#Type.Len), they will see this:
Len returns the current queue length, for informational purposes only. You shouldn't e.g. gate a call to Add() or Get() on Len() being a particular value, that can't be synchronized properly.
Now in our case I think it's ok because we just try to ensure that the queue doesn't grow too big, we are not interested in providing an exact guarantee. But a comment would help avoid confusion.
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.
Sure. Added comment here.
SubscribePacketIn requires a receiver to pop data in ch timely, otherwise it will block all inbound messages from OVS.
/test-all |
/test-e2e |
/test-e2e |
SubscribePacketIn requires a receiver to pop data in ch timely, otherwise it will block all inbound messages from OVS.
SubscribePacketIn requires a receiver to pop data in ch timely, otherwise it will block all inbound messages from OVS.
This PR closes #937