Cadvisor can inotify watch for new cgroups. This leads to it racing fairly tightly with cgroup creation... So tightly, that sometimes cpustats are nil. The runc library code we call (https://github.com/opencontainers/runc/blob/v1.0.0-rc4/libcontainer/cgroups/fs/apply_raw.go#L179-L182) doesn't actaully consider this an error, so we have to handle that scenario ourselves. This fixes https://github.com/google/cadvisor/issues/1765 |
||
---|---|---|
.. | ||
testdata | ||
helpers_test.go | ||
helpers.go |