mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
A sandbox shim may exit as soon as it has shut its sandbox down, before containerd reads the ShutdownSandbox response, in which case the client sees ttrpc.ErrClosed. The task Shutdown RPC has the same race and shimTask.Shutdown treats a closed connection as a successful shutdown; controllerLocal.Shutdown returned it as an error instead, failing RemovePodSandbox for a sandbox that was already gone. Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>