Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
1.5.0
-
None
-
None
Description
The implementation of DockerContainerizerProcess::usage checks on the top-level whether the container is in DESTROYING state and returns a failure in that case. It then possibly triggers compuation of the container pid, and defers calculating the usage on that pid. The defered calculation only makes sure that the container is not already destroyed.
If a user first requests the usage and then triggers container destruction, usage could find the container not in DESTROYING state and would then defer the usage computation. If the destroy is processed it would trigger the actual killing of the container and mark the container as DESTROYING. If the container is not fully destroyed the deferred usage calculation could then pick up results not corresponding to the container anymore.