Closed GoogleCodeExporter closed 9 years ago
looks like a bug in the test. though a pretty crazy one. I doubt the backport
change you made would make a difference. Though possibly the recent
ListenerCallQueue changes made this race more likely (since there is slightly
less locking going on)
The failure callback was supposed to run on another thread, but it looks like
thread scheduling allowed notifyFailed to run prior to when the original
executeListeners call from Service.startAsync call returned. So the failure
listeners ended up running on the wrong thread (in particular it ran on the
test thread). The fix is to introduce another synchronization point between
the background thread and the main test thread to make sure that all started
callbacks have fired prior to calling notifyFailed.... phew!
Original comment by lu...@google.com
on 7 Apr 2014 at 5:57
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:09
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
cpov...@google.com
on 7 Apr 2014 at 5:42Attachments: