Files
nomad/client/driver
Michael Schurter c47860f928 Don't panic in container list/remove/inspect race
Fixes #2802

While it's hard to reproduce the theoretical race is:

1. This goroutine calls ListContainers()
2. Another goroutine removes a container X
3. This goroutine attempts to InspectContainer(X)

However, this bug could be hit in the much simpler case of
InspectContainer() timing out.

In those cases an error is returned and the old code attempted to wrap
the error with the now-nil container.ID. Storing the container ID fixes
that panic.
2017-07-07 15:10:59 -07:00
..
2017-06-23 15:20:04 -07:00
2017-06-16 16:10:12 +02:00
2017-06-16 16:10:12 +02:00
2017-01-12 15:47:58 -08:00
2017-01-23 14:48:02 -08:00
2016-08-05 10:47:44 -07:00
2016-08-05 10:47:44 -07:00
2017-02-23 14:40:24 -08:00
2017-06-21 17:19:08 -07:00
2017-01-12 15:47:58 -08:00
2017-06-21 17:19:08 -07:00
2016-03-08 11:41:26 -08:00
2017-04-19 13:16:48 -07:00
2017-05-23 13:53:34 -07:00