-
Notifications
You must be signed in to change notification settings - Fork 260
fix: [WIN-NPM] filter HNS endpoints #1848
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
Conversation
cd567fb to
f1f5d00
Compare
|
|
||
| // NOTE see assumptions of hnsv2wrapperfake.ListEndpointsQuery | ||
| func (h Hnsv2wrapperwithtimeout) ListEndpointsQuery(query hcn.HostComputeQuery) ([]hcn.HostComputeEndpoint, error) { | ||
| r := make(chan ListEndpointsFuncResult) |
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 leaks goroutines when they try to send to the channel after the timeout has fired. fix is to make this a buffered chan of size 1.
Testing Non-Attached ContainerCreated non-Pod endpoint, and NPM did not see it: Testing Remote Endpoints
Verified that:
|
4e75895 to
5042897
Compare
…ure/azure-container-networking into hgregory/npm-filter-endpoints
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Reason for Change:
Filter HNS endpoints for running, local Pods. This will improve endpoint cache management, preventing any race conditions.
Issue Fixed:
N/A
Requirements:
Notes: