mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Mazumdar <>
Subject Review Request 44275: Fixed flakiness in tests using the scheduler library.
Date Wed, 02 Mar 2016 18:21:49 GMT

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

Review request for mesos and Vinod Kone.

Bugs: MESOS-4029

Repository: mesos


This change fixes the tests using the scheduler library by
explicitly invoking `stop()` from the testing interface. This
ensures that no further callbacks are delivered to the scheduler.

For one-off async callbacks that are already on the libprocess queue
we need to do a `Clock::settle` to ensure they are executed before
the mock object goes out of scope.


  src/tests/mesos.hpp 0c55d5901753dc3f6e71486f727a2af7bd920429 



make check + Induced a sleep in the async callbacks. Previously, the test used to crash but
with the fix it no longer crashes.


Anand Mazumdar

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