cadvisor/container/docker
Antonio Murdaca 42eeba5783
container: fix concurrent map acccess
GetSpec() can be called concurrently in
manager/container.go.updateSpec()
results into a concurrent map access on the labels map because we're
directly updating the map inside GetSpec(). The labels map from the
container handler is not a copy of the map itself, just a reference,
that's why we're getting the concurrent map access.
Fix this by moving the label update with restartcount to the handler's
initialization method which is not called concurrently.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2018-06-13 19:06:47 +02:00
..
client.go fix #1743; move off of docker/engine-api 2017-09-28 11:05:13 -07:00
docker_test.go Add Docker API version 2017-04-04 10:56:11 +05:30
docker.go Retry docker status on startup 2018-02-06 10:31:11 +00:00
factory_test.go Ignore any .mount cgroup in docker handler 2017-01-16 11:02:37 -05:00
factory.go Add timeouts for docker queries 2017-12-05 13:50:48 +00:00
handler_test.go Fix fs stats handling for non-aufs storage drivers. 2016-02-05 16:32:07 -08:00
handler.go container: fix concurrent map acccess 2018-06-13 19:06:47 +02:00