Project: mesos
Issue MESOS-3252: Ignore no statistics condition for containers with no qdisc
In PortMappingStatistics::execute, we log the following errors to stderr if the egress rate limiting qdiscs are not configured inside the container. {code} Failed to get the network statistics for the htb qdisc on eth0 Failed to get the network statistics for the fq_codel qdisc on eth0 {code} This can occur because of an error reading the qdisc (statistics function return an error) or because the qdisc does not exist (function returns none). We should not log an error when the qdisc does not exist since this is normal behaviour if the container is created without rate limiting. We do not want to gate this function on the slave rate limiting flag since we would have to compare the behaviour against the flag value at the time the container was created.
Story points: 2