Commit 79a8f53
committed
Keep the exit code when a container stops
The runtime reported it and ExitMonitor acted on it, but nothing stored
it, so a container that crashed was indistinguishable from one that was
asked to stop. ContainerSnapshot carries exitCode and exitedAt now,
populated in handleContainerExit. Both are optional, so a snapshot from
before this change - or a container that stopped before the apiserver
started - decodes fine and simply has no code.1 parent abff418 commit 79a8f53
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- Sources
- ContainerResource/Container
- Services/ContainerAPIService/Server/Containers
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
47 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
995 | 1000 | | |
996 | 1001 | | |
997 | 1002 | | |
| |||
0 commit comments