-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42096/
-----------------------------------------------------------

Review request for mesos and Jie Yu.


Bugs: MESOS-4318
    https://issues.apache.org/jira/browse/MESOS-4318


Repository: mesos


Description
-------

Fixed race in persistent volume tests.


Diffs
-----

  src/tests/persistent_volume_tests.cpp 
0a9a2bbd3b3a9c1bacf361750fae7a1970a622b7 

Diff: https://reviews.apache.org/r/42096/diff/


Testing
-------

I was able to reproduce this failure by doing
`MESOS_VERBOSE=1 
GTEST_FILTER="PersistentVolumeTest.BadACLNoPrincipal:PersistentVolumeTest.BadACLDropCreateAndDestroy"
 bin/mesos-tests.sh --gtest_repeat=1000 --gtest_break_on_failure=1`
on Ubuntu 14.04. Unfortunately, the tests in question were relying on the 
`suppressOffers` and `reviveOffers` calls being reliably completed in a 
specified order, which is not the case. Inserting `Clock::settle()` after the 
appropriate `suppressOffers` calls allows those messages to be processed before 
`driver1` calls `reviveOffers`, ensuring that `driver1` can receive the 
resulting offers.

After applying the patch, I ran the above command on both Ubuntu 14.04 and OSX 
and it was successful.


Thanks,

Greg Mann

Reply via email to