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

Review request for Aurora, Kevin Sweeney and Maxim Khutornenko.


Repository: aurora


Description
-------

I dug into this after noticing SchedulerIT test flakiness (deadlock) as a 
result of tearDown actions being executed SchedulerActive event was being 
dispatched.  The test is arranged such that it expects the effects of that 
event to occur before the test exits.  The deadlock was related to EasyMock's 
default global lock for mock answering, so that particular deadlock does not 
affect us in production.

Please see the lengthy comment in SchedulerLifecycle.java explaining the 
mechanics of the change.


Diffs
-----

  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 
bf926a740c3dafc811165e13a437853a5390bfe6 
  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java 
24cd6faa4c9610b369002e842450b9b2bf87dfca 

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


Testing
-------

Prior to this change, i could trigger the deadlock about 50% of the time.  With 
this change, i've run tests many times with no issues.


Thanks,

Bill Farner

Reply via email to