containerd/runtime/v2/runc
Georgi Sabev 7451dd1ed1 Return GRPC not found error instead of plain one
When the shim returns a plain error when a process does not exist,
the server is unable to recognise its GRPC status code and assumes
UnknownError. This is awkward for containerd client users as they are
unable to recognise the actual reason for the error.

When the shim returns a NotFound GRPC error, it is properly translated
by the server and clients receive a proper NotFound error instead of
Unknown

Please note that we (CF Garden) would like to have the eventual fix backported to 1.4 as well.

Co-authored-by: Danail Branekov <danailster@gmail.com>

Signed-off-by: Danail Branekov <danailster@gmail.com>
Signed-off-by: Georgi Sabev <georgethebeatle@gmail.com>
2020-12-18 15:33:48 +02:00
..
options vendor protobuf & grpc 2020-02-26 10:57:05 +09:00
v1 Use path based unix socket for shims 2020-11-11 11:47:46 -08:00
v2 Return GRPC not found error instead of plain one 2020-12-18 15:33:48 +02:00
container.go shim v2 runc: propagate options.Root to Cleanup 2020-06-17 19:06:36 +09:00
platform.go Cleanup open pipes if logging binary fails to start 2020-09-10 20:06:51 -07:00
util.go Check error return from json.Unmarshal 2020-03-05 13:38:08 -05:00