You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by John Sirois <js...@apache.org> on 2016/01/26 15:53:01 UTC

Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

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

Review request for Aurora, Bill Farner and Zameer Manji.


Bugs: AURORA-1593
    https://issues.apache.org/jira/browse/AURORA-1593


Repository: aurora


Description
-------

This was the original idea in https://reviews.apache.org/r/42332.

Mixing the active scheduler `Service` lifecycle with the `EventBus`
lifecycle proves tricky - prune events are fired before scheduler active
services are started.  Instead of queueing up prune events to wait for
service start or re-engineering service / event bus interaction, returns
to the orignal behavior, manipulating the `Lifecycle` directly.

Also kill a confusing unused EventSink discovered during analyis of all
pub-sub event sourcing that might interact with the `TaskHistoryPruner`.

 src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
 src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
 src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
 src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
 src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
 src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
 src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
 7 files changed, 36 insertions(+), 57 deletions(-)


Diffs
-----

  src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 

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


Testing
-------

Locally green:
```
./gradlew -Pq build
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
```
It's the latter - e2e (krb part) - that was the only automated testing
revealing the problem previously.


Thanks,

John Sirois


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by John Sirois <js...@apache.org>.

> On Jan. 26, 2016, 7:57 a.m., Aurora ReviewBot wrote:
> > Can only test reviews with 1 parent, found 2:
> > 	https://reviews.apache.org/api/review-requests/42639/
> > 	https://reviews.apache.org/api/review-requests/42332/
> > 
> > I will refresh this build result if you post a review containing "@ReviewBot retry"

I knew that too!


- John


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


On Jan. 26, 2016, 8 a.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 8 a.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by John Sirois <js...@apache.org>.

- John


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


On Jan. 26, 2016, 8 a.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 8 a.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/#review116356
-----------------------------------------------------------



Can only test reviews with 1 parent, found 2:
	https://reviews.apache.org/api/review-requests/42639/
	https://reviews.apache.org/api/review-requests/42332/

I will refresh this build result if you post a review containing "@ReviewBot retry"

- Aurora ReviewBot


On Jan. 26, 2016, 2:53 p.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 2:53 p.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/#review116361
-----------------------------------------------------------


Ship it!




Master (39815a3) is green with this patch.
  ./build-support/jenkins/build.sh

I will refresh this build result if you post a review containing "@ReviewBot retry"

- Aurora ReviewBot


On Jan. 26, 2016, 3 p.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 3 p.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by Bill Farner <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/#review116396
-----------------------------------------------------------


Ship it!




Ship It!

- Bill Farner


On Jan. 26, 2016, 7 a.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 7 a.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by John Sirois <js...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/#review116359
-----------------------------------------------------------



@ReviewBot retry

- John Sirois


On Jan. 26, 2016, 8 a.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 8 a.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by Zameer Manji <zm...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/#review116397
-----------------------------------------------------------


Ship it!




Ship It!

- Zameer Manji


On Jan. 26, 2016, 7 a.m., John Sirois wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42801/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 7 a.m.)
> 
> 
> Review request for Aurora, Bill Farner and Zameer Manji.
> 
> 
> Bugs: AURORA-1593
>     https://issues.apache.org/jira/browse/AURORA-1593
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> This was the original idea in https://reviews.apache.org/r/42332.
> 
> Mixing the active scheduler `Service` lifecycle with the `EventBus`
> lifecycle proves tricky - prune events are fired before scheduler active
> services are started.  Instead of queueing up prune events to wait for
> service start or re-engineering service / event bus interaction, returns
> to the orignal behavior, manipulating the `Lifecycle` directly.
> 
> Also kill a confusing unused EventSink discovered during analyis of all
> pub-sub event sourcing that might interact with the `TaskHistoryPruner`.
> 
>  src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
>  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
>  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
>  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
>  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
>  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
>  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
>  7 files changed, 36 insertions(+), 57 deletions(-)
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
>   src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
>   src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
>   src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
>   src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
>   src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
>   src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 
> 
> Diff: https://reviews.apache.org/r/42801/diff/
> 
> 
> Testing
> -------
> 
> Locally green:
> ```
> ./gradlew -Pq build
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
> ```
> It's the latter - e2e (krb part) - that was the only automated testing
> revealing the problem previously.
> 
> 
> Thanks,
> 
> John Sirois
> 
>


Re: Review Request 42801: `TaskHistoryPruner` controls Lifecycle directly.

Posted by John Sirois <js...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42801/
-----------------------------------------------------------

(Updated Jan. 26, 2016, 8 a.m.)


Review request for Aurora, Bill Farner and Zameer Manji.


Bugs: AURORA-1593
    https://issues.apache.org/jira/browse/AURORA-1593


Repository: aurora


Description
-------

This was the original idea in https://reviews.apache.org/r/42332.

Mixing the active scheduler `Service` lifecycle with the `EventBus`
lifecycle proves tricky - prune events are fired before scheduler active
services are started.  Instead of queueing up prune events to wait for
service start or re-engineering service / event bus interaction, returns
to the orignal behavior, manipulating the `Lifecycle` directly.

Also kill a confusing unused EventSink discovered during analyis of all
pub-sub event sourcing that might interact with the `TaskHistoryPruner`.

 src/main/java/org/apache/aurora/GuavaUtils.java                              | 18 ------------------
 src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java            |  5 -----
 src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java         |  1 -
 src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java     | 24 +++++++++++++-----------
 src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java           | 17 +++++++++++++++--
 src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java        |  4 ----
 src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java | 24 ++++++++----------------
 7 files changed, 36 insertions(+), 57 deletions(-)


Diffs
-----

  src/main/java/org/apache/aurora/GuavaUtils.java 7d569e000c358e4f27397168843afdc0e9471ad6 
  src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 5ba5e73464336014d5d49885a080dc98bebfeefb 
  src/main/java/org/apache/aurora/scheduler/pruning/PruningModule.java efdfbdaa4ea00469faf2c33a8bc12051685f87ca 
  src/main/java/org/apache/aurora/scheduler/pruning/TaskHistoryPruner.java 5441630522b3855a3b2036b5ff66fe980728ec68 
  src/test/java/org/apache/aurora/LifecycleShutdownListenerTest.java d91dc277efebf658947382614f77aff15b3a251b 
  src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java bab45670d66dfed23dd6e0339687166c9be44ba4 
  src/test/java/org/apache/aurora/scheduler/pruning/TaskHistoryPrunerTest.java ffeee1bebdb403be9179a8160e4d9a01aaf1f56b 

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


Testing
-------

Locally green:
```
./gradlew -Pq build
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
```
It's the latter - e2e (krb part) - that was the only automated testing
revealing the problem previously.


Thanks,

John Sirois