mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Mann" <>
Subject Re: Review Request 42093: Added proper handling of `None()` in the `CfsFilter`.
Date Fri, 08 Jan 2016 23:41:00 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 8, 2016, 11:41 p.m.)

Review request for mesos, Ben Mahler and Timothy Chen.

Summary (updated)

Added proper handling of `None()` in the `CfsFilter`.

Repository: mesos

Description (updated)

Added proper handling of `None()` in the `CfsFilter`. Previously, this test assumed that `cgroups::hierarchy("cpu")`
would either return `Some()` or an `Error()`. However, the call may return `None()`, and this
must be handled properly.


  src/tests/environment.cpp 9d05630661bf6f20dbb492a27811933f65f3d14e 



`sudo GTEST_FILTER="*CFS_*" bin/` on Ubuntu 14.04, first with the 'cpu' hierarchy
mounted, then without the hierarchy mounted. When properly mounted, the tests will run. When
unmounted, the correct error message is displayed corresponding to a `cgroups::hierarchy("cpu")`
return value of `None()`, and the tests are filtered out.


Greg Mann

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message