containerd/linux
Michael Crosby 951c129bf1 Handle locking and errors for process state
ref: #1464

This tries to solve issues with races around process state.  First it
adds the process mutex around the state call so that any state changes,
deletions, etc will be handled in order.

Second, for IsNoExist errors from the runtime, return a stopped state if
a process has been removed from the underlying OCI runtime but not from
the shim yet.  This shouldn't happen with the lock from above but its
hare to verify this issue.

Third, handle shim disconnections and return an ErrNotFound.

Forth, don't abort returning all tasks if one task is unable to return
its state.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-09-07 16:22:00 -04:00
..
runcopts Refactor task service metrics 2017-09-05 17:26:26 -04:00
shim Handle locking and errors for process state 2017-09-07 16:22:00 -04:00
bundle.go linux: Add RuntimeRoot to RuncOptions 2017-08-31 14:35:05 -07:00
process.go Return exit status from Wait of stopped process 2017-08-03 17:22:33 -04:00
runtime.go Move metrics requests to services 2017-09-05 17:41:30 -04:00
task.go Handle locking and errors for process state 2017-09-07 16:22:00 -04:00