-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57093/
-----------------------------------------------------------
Review request for mesos, Benjamin Bannier, Benjamin Hindman, Benjamin Mahler,
and Joris Van Remoortere.
Bugs: MESOS-6907
https://issues.apache.org/jira/browse/MESOS-6907
Repository: mesos
Description
-------
When using timers in tests, there was the possibility that
`clock::settle()` would return before the list containing
the timedout timers was destroyed. That behavior resulted
in race conditions in tests which expected objects stored
in timers to be destroyed after such timers timed out and
the clock had settled.
The issue described above was addressed by explicitly
clearing the list after the timer's callbacks were executed
but before `clock::settle` is set to `false`.
Diffs
-----
3rdparty/libprocess/src/clock.cpp 6116c82377b1c2f33c5f4bc14890d35f34cc973d
Diff: https://reviews.apache.org/r/57093/diff/
Testing
-------
`make check`
Full test tried in next patch.
Thanks,
Alexander Rojas