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
Verify Endpoint.Info() before accessing it #17703
Conversation
- During concurrent operations in multihost environment, it is possible that the implementer of `EndpointInfo` is nil. It simply means the endpoint is no longer available in the datastore. Signed-off-by: Alessandro Boch <aboch@docker.com>
LGTM |
This is OK, but I think it's better to return a |
@cpuguy83 Makes sense, but that would be a public API change. |
public API of what? |
Libnetwork package API. We have been trying not to change existing API in libentwork, not only the ones interfacing with remote drivers. Sure the non driver interfacing API can be changed, given daemon is probably going to be the only client. |
LGTM. Yes, I get we don't want to change the driver API. Package API should be fine to change as this should be versioned by checkouts. |
Verify Endpoint.Info() before accessing it
@thaJeztah Yes, please. This should be added to 1.9.1. |
Thanks! If you see another PR that should be considered, feel free to ping me or another maintainer ❤️ |
EndpointInfo
when runningdocker network ls
. It is a valid situation. It just means the endpoint is no longer available in the datastore.Signed-off-by: Alessandro Boch aboch@docker.com