mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Mazumdar" <>
Subject Review Request 40811: Fixed flakiness in tests using the Scheduler library
Date Tue, 01 Dec 2015 03:38:59 GMT

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

Review request for mesos and Ben Mahler.

Bugs: MESOS-4029

Repository: mesos


Previously, the `event` queue object was defined after the `callbacks` object. However, the
`callbacks` object held on a reference to the queue object. This led to a crash in some scenarios
when we received another event from the master after the `event` object was destroyed. (Note
that objects on the stack are destroyed in the reverse order of definition)

The short term fix is to move the `event` queue object above the `callbacks` object. This
ensures that it is destroyed after the `callbacks` object. The long term fix would be worked
on via `MESOS-3339` that moves the tests to a callback interface model similar to what we
have for the driver tests.


  src/tests/master_maintenance_tests.cpp ade05f932020013ced19c1573be756a029396fac 
  src/tests/scheduler_tests.cpp 67432109c7df6be0aa76e94a03bd5b2e9c96d14e 



make check + Reproduced this by introducing a sleep in the `Mesos` destructor + did not filter
out the `HEARTBEAT` event.


Anand Mazumdar

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