-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Bump containerd client #36684
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
Bump containerd client #36684
Conversation
@@ -114,6 +114,13 @@ type client struct { | |||
containers map[string]*container | |||
} | |||
|
|||
func (c *client) reconnect() error { |
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 probably need to catch connection failures in normal requests and trigger a reconnect, but we aren't handling these cases at all (or ever AFAIK).
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.
Those requests would just fail until the connection monitor reconnects normally.
Will this change be part of the upcoming containerd 1.1.0 release? Wondering if we can get back to released versions of the dependency (or at least something on a release branch) |
I think so, a release branch has not be cut yet. |
The new client API is not really "new" anymore since it's been a couple of weeks, btw. |
Alright, so probably safe to assume it’ll be in 1.1.0, and once that’s released, we could switch to a tagged version, thanks! |
271b782
to
5554c31
Compare
Codecov Report
@@ Coverage Diff @@
## master #36684 +/- ##
=========================================
Coverage ? 35.33%
=========================================
Files ? 614
Lines ? 46345
Branches ? 0
=========================================
Hits ? 16375
Misses ? 27797
Partials ? 2173 |
5554c31
to
f7a5424
Compare
This does not bump the containerd binary. Picks last commit before go1.10 switch, which is not currently supported in moby. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This fixes an issue where the containerd client is cached in a container object in libcontainerd and becomes stale after containerd is restarted. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
f7a5424
to
2c682d5
Compare
LGTM |
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.
LGTM
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.
LGTM 🐯
Reconnect()
API to reconnect cached clients instead of replacing them (leaving stale clients in other cached objects).