Descriptionuniter: integrate filter type
By tweaking the filter slightly, to provide more carefully-tailored events,
the uniter Modes have been radically simplified.
Note that state.Unit was previously mis-specified, and is now fixed: it's
fine (in fact, potentially necessary) to resolve errors when the unit is
Dying.
Also note that there are roughly 50% more full Uniter tests than the
previous branch, but they run in roughly the same amount of time. Win!
But! This is actually a significant slowdown, because I fixed a bunch of
happy-path 500ms waits in the uniter tests. It's true that this variant does
more unnecessary work in the service of simpler Mode code, and I haven't been
able to find any obvious hotspots (apart from the pre-existing one) so if
reviewers would bear subtle performance implications in mind I would be most
grateful :).
https://code.launchpad.net/~fwereade/juju-core/uniter-use-filter/+merge/127159
Requires: https://code.launchpad.net/~fwereade/juju-core/uniter-filter-type/+merge/127142
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : uniter: integrate filter type #
Total comments: 27
Patch Set 3 : uniter: integrate filter type #Patch Set 4 : uniter: integrate filter type #Patch Set 5 : uniter: integrate filter type #
Total comments: 8
Patch Set 6 : uniter: integrate filter type #
Total comments: 12
Patch Set 7 : uniter: integrate filter type #
MessagesTotal messages: 14
|